/* ============================================================
   PAL RADIOS — COMPONENT & SECTION STYLES
   Consumes css/tokens.css only. No raw color / size values here.
   Section prefixes: .nav- .hero- .brands- .products- .repair-
                     .why- .reviews- .contact- .footer-
   ============================================================ */

/* ===== BASE ================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-4));
}

body {
  background: var(--color-bg);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-locked {
  overflow: hidden;
}

::selection {
  background: var(--color-selection-bg);
  color: var(--color-selection-text);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 200;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: var(--hairline) solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-heading);
  font-size: var(--text-sm);
  transform: translateY(-300%);
}

.skip-link:focus-visible {
  transform: none;
}

/* ===== SHARED LAYOUT & PRIMITIVES ============================ */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-section);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-7);
}

.section-title {
  font-size: var(--text-h2);
  margin-top: var(--space-3);
}

.section-intro {
  margin-top: var(--space-4);
  font-size: var(--text-md);
}

/* Eyebrow label — one of the few sanctioned gradient uses */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.eyebrow::before {
  content: "";
  width: var(--eyebrow-rule-w);
  height: var(--rule-accent-h);
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-snug);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.btn-gradient {
  background: var(--gradient-accent);
  color: var(--color-on-accent);
  box-shadow: var(--glow-cta);
}

.btn-gradient:hover {
  box-shadow: var(--glow-cta-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-heading);
  border: var(--hairline) solid var(--color-border-strong);
}

.btn-ghost:hover {
  border-color: var(--tint-accent-border);
  color: var(--color-accent-text);
}

/* WhatsApp CTA — kept in the brand's own green rather than the site accent,
   so it reads instantly as WhatsApp rather than a generic gradient button. */
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-on-accent);
  box-shadow: var(--glow-whatsapp);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  box-shadow: var(--glow-whatsapp-hover);
  transform: translateY(-2px);
}

/* Signature equalizer accent — used ONLY in hero + one divider */
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: var(--eq-bar-gap);
  height: var(--eq-height);
  flex-shrink: 0;
}

.eq-bar {
  width: var(--eq-bar-w);
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
  transform-origin: bottom;
  animation: eq-bounce 1.6s ease-in-out infinite;
}

.eq-bar:nth-child(1) { animation-delay: 0s;    transform: scaleY(0.45); }
.eq-bar:nth-child(2) { animation-delay: 0.25s; transform: scaleY(0.8); }
.eq-bar:nth-child(3) { animation-delay: 0.5s;  transform: scaleY(0.55); }
.eq-bar:nth-child(4) { animation-delay: 0.15s; transform: scaleY(0.95); }
.eq-bar:nth-child(5) { animation-delay: 0.4s;  transform: scaleY(0.6); }

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1); }
}

/* Section divider that carries the second equalizer accent */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.divider-rule {
  flex: 1;
  max-width: 12rem;
  height: var(--hairline);
  background: var(--color-border);
}

/* Scroll reveals — only hidden once JS confirms it will reveal them */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--space-5));
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== NAVIGATION ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: var(--space-4) var(--space-3);
}

.nav-inner {
  position: relative;
  z-index: 0; /* own stacking context so ::before's z-index:-1 stays behind the pill's content only */
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-inline: var(--space-5) var(--space-3);
  border-radius: var(--radius-pill);
}

/* Pill fill and blur live on a pseudo-element — never on .nav-inner itself,
   since backdrop-filter/filter on an ancestor of the fixed-position mobile overlay (.nav-links)
   would make that ancestor its containing block instead of the viewport. */
.nav-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: var(--hairline) solid var(--color-border-strong);
  background: var(--color-nav-pill);
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(180%);
  backdrop-filter: blur(var(--nav-blur)) saturate(180%);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-med) var(--ease-out);
}

.nav.is-scrolled .nav-inner::before {
  box-shadow: var(--shadow-card-hover);
}

.nav-logo img {
  height: calc(var(--nav-height) - var(--space-4));
  width: auto;
  mix-blend-mode: screen; /* logo PNG has a gray background — screen drops it on dark */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-body);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-accent-text);
}

.icon-phone {
  flex-shrink: 0;
}

.nav-menu-ctas {
  display: none; /* lives inside the overlay menu, mobile only */
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

/* Mobile icon-only call button, hidden on desktop */
.nav-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--nav-icon-btn);
  height: var(--nav-icon-btn);
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
  color: var(--color-on-accent);
  box-shadow: var(--glow-cta);
  transition: box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.nav-icon-btn:hover {
  box-shadow: var(--glow-cta-hover);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: calc(var(--space-1) + 1px);
  width: var(--space-7);
  height: var(--space-7);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  width: var(--space-5);
  height: var(--rule-accent-h);
  margin-inline: auto;
  border-radius: var(--radius-pill);
  background: var(--color-heading);
  transition: transform var(--dur-med) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.nav.menu-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(calc(var(--space-1) + var(--rule-accent-h))) rotate(45deg);
}

.nav.menu-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav.menu-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(calc(-1 * (var(--space-1) + var(--rule-accent-h)))) rotate(-45deg);
}

/* ===== HERO ================================================== */

.hero {
  position: relative;
  z-index: 0; /* own stacking context so hero-bg-waves' z-index:-1 stays scoped to this section */
  /* First fold fills the viewport: nav (sticky, in-flow) + hero == 100vh */
  min-height: calc(100svh - (var(--nav-height) + var(--space-4) + var(--space-3)));
  display: flex;
  flex-direction: column;
  padding-block: var(--space-6);
}

/* Holds the two-column grid plus the full-width trust strip; grid grows to
   centre the content vertically, chips settle at the bottom of the fold. */
.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Decorative soundwave motif — extends up past the hero's own top edge to also
   float behind the transparent gap above the nav pill. Never clipped by .hero
   itself (only .hero-bg-waves clips its own internal drift animation). */
.hero-bg-waves {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * (var(--nav-height) + var(--space-4) + var(--space-3)));
  height: calc(100% + var(--nav-height) + var(--space-4) + var(--space-3));
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-bg-wave path {
  fill: none;
  stroke: var(--color-heading);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.hero-bg-wave-1 { opacity: 0.07; }
.hero-bg-wave-1 .hero-bg-wave-track { animation: hero-wave-drift 26s linear infinite; }

.hero-bg-wave-2 { opacity: 0.05; }
.hero-bg-wave-2 .hero-bg-wave-track { animation: hero-wave-drift 34s linear infinite reverse; }

.hero-bg-wave-3 { opacity: 0.09; }
.hero-bg-wave-3 .hero-bg-wave-track { animation: hero-wave-drift 30s linear infinite; animation-delay: -8s; }

@keyframes hero-wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-1600px); }
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-8);
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: var(--space-5);
}

.hero-title-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.hero-title-row .eq {
  margin-top: var(--space-2);
}

.hero-title {
  font-size: var(--text-h1);
  max-width: 13em;
}

/* Badge sits to the left of the supporting line */
.hero-lead {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.hero-sub {
  font-size: var(--text-md);
  max-width: 32em;
}

/* Full container-width trust strip — 4 equal columns with hairline dividers */
.hero-chips {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: var(--hairline) solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-chip {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-inline: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-heading);
}

.hero-chip:first-child {
  padding-inline-start: 0;
}

.hero-chip + .hero-chip {
  border-left: var(--hairline) solid var(--color-border);
}

.hero-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--tint-accent-faint);
  border: var(--hairline) solid var(--color-border);
  color: var(--color-accent-text);
}

.hero-chip-label {
  line-height: var(--leading-snug);
}

.hero-visual {
  position: relative;
  height: min(62vh, 40rem);
  border-radius: var(--radius-xl);
  border: var(--hairline) solid var(--color-border);
  box-shadow: var(--shadow-card);
}

/* Image + scrim clip to the radius directly, so the overflowing badge is not cut off */
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--overlay-img-soft); /* dark scrim so the image never clashes with the theme */
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Client-supplied trust seal — sits to the left of the supporting line */
.hero-badge {
  width: clamp(5.5rem, 9vw, 8.5rem);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

/* ===== FLOATING WHATSAPP BUTTON ============================= */

.whatsapp-fab {
  position: fixed;
  z-index: 90;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-whatsapp);
  color: var(--color-on-accent);
  box-shadow: var(--glow-whatsapp), 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

.whatsapp-fab:hover {
  background: var(--color-whatsapp-dark);
  box-shadow: var(--glow-whatsapp-hover), 0 12px 28px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.whatsapp-fab svg {
  position: relative;
  z-index: 1;
}

/* Soft pulsing ring to draw the eye */
.whatsapp-fab-ping {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-whatsapp);
  opacity: 0.6;
  animation: whatsapp-ping 2.4s var(--ease-out) infinite;
}

@keyframes whatsapp-ping {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Orchestrated hero load-in */
html.js .hero [data-hero-stagger] {
  opacity: 0;
  transform: translateY(var(--space-4));
  animation: hero-rise var(--dur-reveal) var(--ease-out) forwards;
}

html.js .hero-copy [data-hero-stagger]:nth-child(1) { animation-delay: 0.05s; }
html.js .hero-copy [data-hero-stagger]:nth-child(2) { animation-delay: 0.15s; }
html.js .hero-copy [data-hero-stagger]:nth-child(3) { animation-delay: 0.25s; }
html.js .hero-copy [data-hero-stagger]:nth-child(4) { animation-delay: 0.35s; }
html.js .hero-visual[data-hero-stagger]             { animation-delay: 0.3s; }
html.js .hero-chips[data-hero-stagger]              { animation-delay: 0.5s; }

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== BRAND MARQUEE ========================================= */

.brands {
  padding-block: var(--space-7);
  background: var(--color-white); /* pure white band behind the brand-coloured logos */
}

.brands-label {
  margin-bottom: var(--space-6);
}

.brands-marquee {
  overflow: hidden;
  /* fixed height = logo height + breathing room → zero layout shift */
  height: calc(var(--brand-logo-h) + var(--space-6));
  -webkit-mask-image: var(--mask-marquee);
  mask-image: var(--mask-marquee);
}

.brands-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: brands-scroll var(--dur-marquee) linear infinite;
}

.brands-marquee:hover .brands-track {
  animation-play-state: paused;
}

.brands-set {
  display: flex;
  align-items: center;
  gap: var(--marquee-item-gap);
  padding-inline-end: var(--marquee-item-gap);
}

/* Uniform display height, width auto → original aspect ratio preserved.
   Full colour on the white band (no grayscale/dim — that treatment was for
   white logos on the dark theme). */
.brands-set img {
  height: var(--brand-logo-h);
  width: auto;
  object-fit: contain;
}

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== PRODUCTS / CATEGORIES ================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.products-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: var(--hairline) solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.products-card:hover {
  transform: translateY(calc(-1 * var(--space-1)));
  border-color: var(--tint-accent-border);
  box-shadow: var(--shadow-card-hover);
}

.products-card-media {
  position: relative;
  aspect-ratio: 10 / 7;
  overflow: hidden;
}

/* White behind the transparent product cut-out only (not the card body)
   so the product itself stands out clearly. */
.products-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-white);
  z-index: 0;
}

.products-card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain; /* show the whole product cut-out, never crop */
  padding: var(--space-5);
}

.products-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
  padding: var(--space-5);
}

.products-card-title {
  font-size: var(--text-h3);
}

.products-card-desc {
  font-size: var(--text-sm);
  flex: 1;
}

.products-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
  align-self: flex-start;
  transition: color var(--dur-fast) var(--ease-out);
}

.products-card-link:hover {
  color: var(--color-accent-text);
}

.products-card-link-icon {
  flex-shrink: 0;
}

/* ===== PRODUCT CATALOGUES ===================================== */

.catalogues {
  padding-top: 0;
}

.catalogues-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

/* Same dark-glass treatment as the Why Us pillars, for a consistent premium feel */
.catalogue-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--surface-glass);
  border: var(--hairline) solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out);
}

.catalogue-card:hover {
  transform: translateY(calc(-1 * var(--space-2)));
  border-color: var(--border-glass-hover);
  background: var(--surface-glass-hover);
  box-shadow: var(--shadow-card-hover);
}

/* White plate behind the brand logo — the PNGs are authored for light backgrounds */
.catalogue-card-logo {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding-inline: var(--space-4);
  margin-bottom: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.catalogue-card-logo img {
  height: 1.75rem;
  width: auto;
}

.catalogue-card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.catalogue-card-desc {
  font-size: var(--text-sm);
}

.catalogue-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
  transition: color var(--dur-fast) var(--ease-out);
}

.catalogue-card-link:hover {
  color: var(--color-accent-text);
}

/* ===== REPAIR & SERVICE ===================================== */

.repair-panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-7);
  align-items: center;
  background: var(--color-surface);
  background-image: linear-gradient(135deg, var(--tint-accent-faint), transparent 55%);
  border: var(--hairline) solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  box-shadow: var(--shadow-card);
}

.repair-lead {
  margin-top: var(--space-4);
  max-width: 38em;
}

.repair-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-5);
  margin-block: var(--space-6);
}

.repair-point {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-heading);
}

.repair-point-mark {
  width: var(--space-4);
  height: var(--rule-accent-h);
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent); /* thin decorative rule — sanctioned use */
}

.repair-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--hairline) solid var(--color-border);
}

.repair-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-img-soft);
}

.repair-visual img {
  width: 100%;
  height: auto; /* beat the HTML height attribute so aspect-ratio applies */
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ===== WHY PAL RADIOS ======================================= */

.why {
  padding-block: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

/* Premium dark glass card */
.why-pillar {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--surface-glass);
  border: var(--hairline) solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out);
}

/* Apple-style micro-interaction: lift, brighter border, subtly brighter surface */
.why-pillar:hover {
  transform: translateY(calc(-1 * var(--space-2)));
  border-color: var(--border-glass-hover);
  background: var(--surface-glass-hover);
  box-shadow: var(--shadow-card-hover);
}

.why-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--tint-icon-bg);
  color: var(--color-accent-text);
  transition: background var(--dur-med) var(--ease-out),
              color var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
}

/* Hover matches the primary CTA treatment — same gradient, same on-accent icon color */
.why-pillar:hover .why-pillar-icon {
  background: var(--gradient-accent);
  color: var(--color-on-accent);
  transform: translateY(calc(-1 * var(--space-1)));
}

.why-pillar-title {
  font-size: var(--text-lg);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: var(--hairline) solid var(--border-glass); /* divider under title */
}

.why-pillar-desc {
  font-size: var(--text-sm);
}

/* ===== GOOGLE REVIEWS ======================================= */

.reviews {
  padding-bottom: 0;
}

/* Desktop: heading on the left, rating anchor on the right.
   Stacks back to centered on tablet/mobile — see breakpoints below. */
.reviews .section-head {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  text-align: left;
  margin-inline: 0;
}

.reviews-anchor {
  text-align: right;
  margin-top: 0;
}

.reviews-stat {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--text-stat);
  color: var(--color-heading);
  line-height: var(--leading-tight);
}

.reviews-stat-of {
  font-size: var(--text-md);
  color: var(--color-muted);
  font-family: var(--font-body);
}

.reviews-stars {
  position: relative;
  display: inline-block;
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  letter-spacing: var(--space-1);
  margin-top: var(--space-2);
}

.reviews-stars-base {
  color: var(--color-border-strong);
}

.reviews-stars-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 94%; /* 4.7 / 5 */
  color: var(--color-orange);
  white-space: nowrap;
}

.reviews-count {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

.google-g-icon {
  flex-shrink: 0;
}

/* ----- Slider ----- */

.reviews-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.reviews-slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}

.reviews-slider::-webkit-scrollbar {
  display: none;
}

.reviews-track {
  display: flex;
  gap: var(--space-5);
}

.reviews-card {
  flex: 0 0 auto;
  width: min(22rem, 82vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-surface);
  border: var(--hairline) solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: background var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
}

.reviews-card:hover {
  background: var(--color-white);
  border-color: var(--color-white);
}

.reviews-quote {
  font-size: var(--text-sm);
  flex: 1;
  transition: color var(--dur-med) var(--ease-out);
}

.reviews-card:hover .reviews-quote {
  color: var(--color-ink-muted);
}

.reviews-quote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
  color: var(--color-accent-text);
}

.reviews-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
  transition: color var(--dur-med) var(--ease-out);
}

.reviews-card:hover .reviews-author {
  color: var(--color-ink);
}

.reviews-author-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 400;
  color: var(--color-muted);
  transition: color var(--dur-med) var(--ease-out);
}

.reviews-card:hover .reviews-author-meta {
  color: var(--color-ink-muted);
}

/* Prev/next arrow buttons flank the slider; hidden once a card no longer
   fits beside them (see breakpoint below) so mobile relies on swipe. */
.reviews-nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-8);
  height: var(--space-8);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: var(--hairline) solid var(--color-border);
  color: var(--color-heading);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.reviews-nav:hover {
  color: var(--color-accent-text);
  border-color: var(--tint-accent-border);
}

/* Single pill track + proportional thumb, standing in for a scrollbar */
.reviews-scrollbar {
  position: relative;
  width: min(22rem, 60vw);
  height: 0.375rem;
  margin: var(--space-6) auto 0;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
  overflow: hidden;
}

.reviews-scrollbar-thumb {
  position: absolute;
  inset-block: 0;
  left: 0;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
}

.reviews-more {
  text-align: center;
  margin-top: var(--space-7);
}

/* ===== INSTAGRAM REELS ======================================= */

.reels {
  padding-top: 0;
}

.reels-slider-wrap {
  position: relative;
}

/* Desktop/tablet: a plain static grid, nothing scrolls */
.reels-slider {
  overflow: visible;
}

.reels-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

/* Vertical, reel-shaped card — 9:16, like the source content */
.reel-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--hairline) solid var(--color-border);
  background: var(--color-surface);
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 55%, rgba(0, 0, 0, 0.55) 100%);
  color: var(--color-on-accent);
  cursor: pointer;
}

.reel-play::before {
  content: "";
  position: absolute;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
  box-shadow: var(--glow-cta);
  opacity: 0.95;
  transition: transform var(--dur-fast) var(--ease-out);
}

.reel-play:hover::before {
  transform: scale(1.08);
}

.reel-play svg {
  position: relative;
  z-index: 1;
}

/* Dots only mean anything once the mobile slider (below) is active */
.reels-dots {
  display: none;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.reels-dot {
  width: var(--space-2);
  height: var(--space-2);
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              width var(--dur-fast) var(--ease-out);
}

.reels-dot.is-active {
  width: var(--space-5);
  background: var(--gradient-accent);
}

.reels-more {
  text-align: center;
  margin-top: var(--space-7);
}

/* Reel lightbox — dimmed backdrop, video keeps its native 9:16 shape */
.reel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out),
              visibility var(--dur-med) var(--ease-out);
}

.reel-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.reel-lightbox-frame {
  position: relative;
  width: min(92vw, calc(88vh * 9 / 16));
  max-height: 88vh;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.reel-lightbox-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-8);
  height: var(--space-8);
  border-radius: var(--radius-pill);
  background: var(--color-nav-pill);
  border: var(--hairline) solid var(--border-glass);
  color: var(--color-heading);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.reel-lightbox-close:hover {
  color: var(--color-accent-text);
  border-color: var(--tint-accent-border);
}

body.reel-lightbox-locked {
  overflow: hidden;
}

/* ===== LOCATION + CONTACT + FORM ============================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7);
  align-items: start;
}

.contact-address {
  font-style: normal;
}

.contact-address-line strong {
  color: var(--color-heading);
  font-weight: 600;
}

.contact-list {
  margin-block: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-list-item {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
}

.contact-list-item a {
  color: var(--color-heading);
  transition: color var(--dur-fast) var(--ease-out);
}

.contact-list-item a:hover {
  color: var(--color-accent-text);
}

.contact-list-label {
  width: 6rem;
  flex-shrink: 0;
  color: var(--color-muted);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  line-height: inherit;
}

.contact-map {
  margin-top: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--hairline) solid var(--color-border);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 17.5rem;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.85) hue-rotate(180deg); /* dark-style the map */
}

.contact-form-wrap {
  background: var(--color-surface);
  border: var(--hairline) solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
}

.contact-form-title {
  font-size: var(--text-h3);
}

.contact-form-sub {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

.contact-form {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: var(--hairline) solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.contact-input::placeholder {
  color: var(--color-muted);
}

.contact-input:focus {
  outline: none;
  border-color: var(--tint-accent-border);
}

.contact-textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.contact-submit {
  align-self: flex-start;
}

.contact-form-status {
  font-size: var(--text-sm);
  min-height: var(--space-5); /* reserve a line — no layout shift on message */
}

.contact-form-status.is-success {
  color: var(--color-success);
}

.contact-form-status.is-error {
  color: var(--color-error);
}

/* ===== FOOTER =============================================== */

.footer {
  border-top: var(--hairline) solid var(--color-border);
  padding-top: var(--space-8);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: var(--space-7);
  padding-bottom: var(--space-8);
}

.footer-logo {
  height: var(--space-9);
  width: auto;
  mix-blend-mode: screen;
}

.footer-tagline {
  margin-top: var(--space-4);
  color: var(--color-heading);
  font-weight: 500;
}

.footer-heading {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.footer-links a,
.footer-contact a {
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-accent-text);
}

.footer-contact p + p {
  margin-top: var(--space-3);
}

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.footer-contact-line svg {
  flex-shrink: 0;
  margin-top: 0.2em; /* optically centers the icon against the first text line */
  color: var(--color-accent-text);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* Accent-highlighted by default; icon turns white on hover/focus */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-7);
  height: var(--space-7);
  border: var(--hairline) solid var(--tint-accent-border);
  border-radius: var(--radius-md);
  color: var(--color-accent-text);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--color-white);
  border-color: var(--color-white);
}

.footer-bottom {
  border-top: var(--hairline) solid var(--color-border);
  padding-block: var(--space-5);
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Credit stays highlighted; underline wipes in left-to-right on hover/focus */
.footer-credit a {
  position: relative;
  display: inline-block;
  color: var(--color-accent-text);
}

.footer-credit a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: var(--rule-accent-h);
  border-radius: var(--radius-pill);
  background: var(--gradient-accent); /* thin decorative rule — sanctioned accent use */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}

.footer-credit a:hover::after,
.footer-credit a:focus-visible::after {
  transform: scaleX(1);
}

/* ===== BREAKPOINTS ========================================== */

/* ≤1024 — tablet landscape */
@media (max-width: 64rem) {
  .hero {
    /* let the stacked fold grow naturally instead of forcing a tall viewport */
    min-height: 0;
  }

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

  .hero-visual {
    height: auto;
  }

  .hero-visual img {
    aspect-ratio: 16 / 9;
  }

  /* 2 columns: dividers/pad only between the two cells of each row */
  .hero-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-5);
  }

  .hero-chip:nth-child(odd) {
    border-left: 0;
    padding-inline-start: 0;
  }

  .hero-chip:nth-child(even) {
    padding-inline-start: var(--space-5);
  }

  .products-grid,
  .catalogues-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .repair-panel {
    grid-template-columns: 1fr;
  }

  .repair-visual img {
    aspect-ratio: 16 / 9;
  }

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

  /* back to the original centered, stacked layout below desktop */
  .reviews .section-head {
    flex-direction: column;
    text-align: center;
    margin-inline: auto;
  }

  .reviews-anchor {
    text-align: center;
    margin-top: var(--space-6);
  }

  .reviews .eyebrow::after {
    content: "";
    width: var(--eyebrow-rule-w);
    height: var(--rule-accent-h);
    border-radius: var(--radius-pill);
    background: var(--gradient-accent);
  }
}

/* ≤768 — tablet portrait / large phone: hamburger nav kicks in */
@media (max-width: 48rem) {
  .nav-inner {
    padding-inline: var(--space-4) var(--space-2);
  }

  .nav-cta {
    display: none;
  }

  .nav-icon-btn {
    display: inline-flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: -1; /* below the nav bar itself so logo/toggle stay clickable */
    flex-direction: column;
    justify-content: center;
    gap: var(--space-6);
    background: var(--scrim-menu);
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-med) var(--ease-out),
                visibility var(--dur-med) var(--ease-out);
  }

  .nav.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: var(--text-lg);
    color: var(--color-heading);
  }

  .nav-menu-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    width: 15rem;
    max-width: 80vw;
    margin-top: var(--space-4);
  }

  .nav-menu-ctas .btn {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .repair-points {
    grid-template-columns: 1fr;
  }

  /* Mobile only: the static desktop grid becomes a swipeable slider */
  .reels-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .reels-slider::-webkit-scrollbar {
    display: none;
  }

  .reels-track {
    display: flex;
    gap: var(--space-5);
  }

  .reel-card {
    flex: 0 0 auto;
    width: min(13.5rem, 62vw);
    scroll-snap-align: start;
  }

  .reels-dots {
    display: flex;
  }
}

/* ≤480 — phones (390 design width) */
@media (max-width: 30rem) {
  .products-grid,
  .catalogues-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Arrows crowd the narrow slider on phones — swipe carries the interaction */
  .reviews-nav {
    display: none;
  }

  .hero {
    padding-top: var(--space-6);
  }

  .hero-title-row .eq {
    display: none; /* keep the headline clean at narrow widths */
  }

  /* single-column trust list, dividers become horizontal rules */
  .hero-chips {
    grid-template-columns: 1fr;
  }

  .hero-chip {
    padding-block: var(--space-3);
  }

  .hero-chip:nth-child(even) {
    padding-inline-start: 0;
  }

  .hero-chip + .hero-chip {
    border-left: 0;
    border-top: var(--hairline) solid var(--color-border);
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ===== REDUCED MOTION ======================================= */

@media (prefers-reduced-motion: reduce) {
  html,
  .reviews-slider,
  .reels-slider {
    scroll-behavior: auto;
  }

  .eq-bar,
  .brands-track,
  .hero-bg-wave-track,
  .whatsapp-fab-ping {
    animation: none;
  }

  html.js .hero [data-hero-stagger] {
    animation: none;
    opacity: 1;
    transform: none;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .products-card,
  .nav-toggle-bar {
    transition: none;
  }

  .btn-gradient:hover,
  .btn-whatsapp:hover,
  .products-card:hover,
  .why-pillar:hover,
  .why-pillar:hover .why-pillar-icon,
  .catalogue-card:hover {
    transform: none;
  }

  .footer-credit a::after {
    transition: none;
  }
}
