/* ==========================================================================
   PitzcarDetail — design system
   Alternating white / near-black sections, single blue accent, editorial type.
   ========================================================================== */

:root {
  --bg: oklch(0.06 0 0);
  --bg-elevated: oklch(0.115 0 0);
  --surface: #ffffff;
  --surface-muted: oklch(0.975 0 0);

  --fg: oklch(0.16 0 0);
  --fg-muted: oklch(0.42 0 0);
  --fg-on-dark: oklch(0.98 0 0);
  --fg-muted-on-dark: oklch(0.76 0 0);

  --border: oklch(0.9 0 0);
  --border-dark: oklch(0.26 0 0);

  --accent: #3887c9;
  --accent-hover: #2c6da3;
  --accent-soft: oklch(0.605 0.127 247.2 / 0.14);
  --accent-ink: #ffffff;
  --whatsapp: #25d366;

  --font-display: "Poppins", "Work Sans", sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --font-mono: "Iceland", ui-monospace, monospace;

  --header-h: 4.75rem;
  --shell: 75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 220ms;
}

@media (min-width: 60rem) {
  :root {
    --header-h: 5.5rem;
  }
}

/* --------------------------------------------------------------- base ---- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: top var(--t-base) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

/* ---------------------------------------------------------- typography ---- */

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.eyebrow-accent {
  color: var(--accent);
}

.section-title {
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.85rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.lead {
  max-width: 62ch;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  color: var(--fg-muted);
}

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

/* -------------------------------------------------------------- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.btn .icon {
  flex: none;
}

.btn-sm {
  min-height: 40px;
  padding: 0.6rem 1.15rem;
  font-size: 0.68rem;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  border-color: color-mix(in oklch, var(--fg-on-dark) 45%, transparent);
  color: var(--fg-on-dark);
}

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

.btn-ghost-dark {
  border-color: var(--fg);
  color: var(--fg);
}

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

/* --------------------------------------------------------------- header ---- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--fg-on-dark);
  transition: background-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border-dark);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: block;
  flex: none;
  width: clamp(5rem, 9vw, 6.5rem);
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-desktop a {
  position: relative;
  display: block;
  padding: 0.4rem 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-on-dark);
  transition: color var(--t-fast) var(--ease);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--accent);
}

.nav-desktop a:hover::after,
.nav-desktop a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta {
  display: none;
}

/* ------------------------------------------------------ language switch ---- */

/* Below the desktop breakpoint the switcher lives inside the mobile panel. */
.lang-switch {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.lang-switch-mobile,
.lang-switch-footer {
  display: flex;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 36px;
  padding: 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted-on-dark);
  border: 1px solid transparent;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.lang-link:hover {
  color: var(--fg-on-dark);
  border-color: var(--border-dark);
}

.lang-link.is-current {
  color: var(--accent);
  border-color: var(--accent);
}

/* --------------------------------------------------------- mobile menu ---- */

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--fg-on-dark);
  border: 1px solid var(--border-dark);
}

.menu-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle [data-menu-icon="close"],
.menu-toggle[aria-expanded="true"] [data-menu-icon="open"] {
  display: none;
}

.menu-toggle[aria-expanded="true"] [data-menu-icon="close"] {
  display: block;
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 45;
  background: var(--bg);
  color: var(--fg-on-dark);
  padding: 2rem 0 3rem;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-0.75rem);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav.is-open {
  opacity: 1;
  transform: none;
}

.mobile-nav ul {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.mobile-nav li + li {
  border-top: 1px solid var(--border-dark);
}

.mobile-nav ul a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--t-fast) var(--ease);
}

.mobile-nav ul a:hover {
  color: var(--accent);
}

.mobile-nav-cta {
  width: 100%;
  margin-bottom: 1.5rem;
}

.lang-switch-mobile {
  justify-content: center;
}

/* ----------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) 0 clamp(4rem, 10vh, 7rem);
  color: var(--fg-on-dark);
  overflow: hidden;
}

/* ------------------------------------------------------------- hero LED ---- */

/* How lit a hexagon is: `--lit` follows the pointer, `--idle` is the ambient
   wave, and each tube reads whichever is brighter. Registering them makes both
   interpolable, so the glow can be transitioned and animated. */
@property --lit {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --idle {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.hero-led {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 85% at 50% 0%,
      color-mix(in oklch, var(--accent) 14%, transparent),
      transparent 70%
    ),
    var(--bg);
}

/* Scrim for the copy at the bottom of the hero. It must not eat the pointer,
   otherwise the hexagons underneath would never see a hover. */
.hero-led::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    oklch(0.06 0 0 / 0) 0%,
    oklch(0.06 0 0 / 0.3) 45%,
    oklch(0.06 0 0 / 0.88) 100%
  );
}

.hex-grid {
  --led-off: oklch(0.32 0.015 245);
  --led-on: oklch(0.99 0.02 230);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hex {
  --glow: max(var(--lit, 0), var(--idle, 0));
  transition: --lit 220ms var(--ease);
  animation: led-idle var(--hex-cycle, 9s) linear var(--hex-delay, 0s) infinite;
}

.hex:hover {
  --lit: 1;
}

.hex polygon {
  fill: none;
  vector-effect: non-scaling-stroke;
}

/* A transparent fill turns the whole cell into a hover target, not just the
   1px of stroke. */
.hex-tube {
  fill: transparent;
  stroke: color-mix(in oklab, var(--led-off), var(--led-on) calc(var(--glow) * 100%));
  stroke-width: calc(1.6px + var(--glow) * 1.4px);
}

.hex-halo {
  stroke: var(--led-on);
  stroke-width: 6px;
  opacity: calc(var(--glow) * 0.3);
}

.hex-bloom {
  stroke: var(--led-on);
  stroke-width: 16px;
  opacity: calc(var(--glow) * 0.09);
}

@keyframes led-idle {
  0%,
  70%,
  100% {
    --idle: 0;
  }
  85% {
    --idle: 0.3;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2.35rem, 6.5vw, 4.5rem);
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.hero-lead {
  max-width: 46ch;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  color: var(--fg-muted-on-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-brands {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  width: 100%;
}

.hero-brands-label {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted-on-dark);
}

.marquee-hero {
  padding-block: 0.75rem;
  border-block: 1px solid color-mix(in oklch, var(--border-dark) 70%, transparent);
}

.marquee-hero .marquee-item img {
  height: clamp(1.75rem, 4vw, 2.5rem);
  opacity: 0.85;
  filter: grayscale(1);
  transition: filter var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}

.marquee-hero .marquee-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.hero-scroll {
  position: absolute;
  right: max(1.25rem, calc((100vw - var(--shell)) / 2));
  bottom: clamp(1.5rem, 5vh, 3rem);
  z-index: 1;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--fg-muted-on-dark);
  border: 1px solid var(--border-dark);
  animation: hero-bob 2.4s var(--ease) infinite;
}

@keyframes hero-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.35rem);
  }
}

/* ------------------------------------------------------------- sections ---- */

.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  scroll-margin-top: var(--header-h);
}

.section-light {
  background: var(--surface);
  color: var(--fg);
}

.section-dark {
  background: var(--bg);
  color: var(--fg-on-dark);
}

.section-dark .eyebrow {
  color: var(--accent);
}

.section-dark .lead {
  color: var(--fg-muted-on-dark);
}

.section-flush {
  padding-bottom: 0;
}

.section-head {
  max-width: 46rem;
}

.section-head .lead {
  margin-inline: 0;
}

.section-foot {
  margin-top: 2.5rem;
}

.section-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.section-figure {
  position: relative;
  margin: 0;
}

/* Stacked, the picture leads; side by side, the copy comes first again. */
.section-grid-media-first .section-figure {
  order: -1;
}

.section-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Sobre: 1:1 fade slider */
.welcome-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
}

.welcome-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.welcome-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms var(--ease);
  pointer-events: none;
}

.welcome-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.welcome-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.welcome-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.welcome-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 1px solid color-mix(in oklch, var(--surface) 55%, transparent);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.welcome-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.welcome-title {
  margin-bottom: 1.25rem;
}

.welcome-title-text {
  display: inline;
  background-image: linear-gradient(
    105deg,
    var(--fg) 0%,
    var(--fg) 38%,
    var(--accent) 50%,
    var(--fg) 62%,
    var(--fg) 100%
  );
  background-size: 220% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Long rest between passes so the shine does not feel repetitive. */
  animation: welcome-title-shine 16s var(--ease) infinite;
}

.welcome-title:hover .welcome-title-text {
  animation-duration: 4s;
}

@keyframes welcome-title-shine {
  0%,
  78%,
  100% {
    background-position: 100% 50%;
  }
  88% {
    background-position: 0% 50%;
  }
}

.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2.25rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.highlight {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.highlight dt {
  margin: 0;
}

.highlight-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.highlight dd {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  min-width: 0;
}

.highlight-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent);
  background: color-mix(in oklch, var(--accent) 8%, transparent);
}

.highlight-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}

/* ------------------------------------------------------------ separator ---- */

.separator {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(60vh, 34rem);
  background: var(--bg);
  color: var(--fg-on-dark);
  overflow: hidden;
}

.separator-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.separator::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(0.06 0 0 / 0.45) 0%,
    oklch(0.06 0 0 / 0.2) 45%,
    oklch(0.06 0 0 / 0.8) 100%
  );
}

.separator-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.separator-caption {
  max-width: 26ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  line-height: 1.15;
}

/* ------------------------------------------------------------- services ---- */

.service-group {
  margin-top: clamp(2.75rem, 5.5vw, 3.75rem);
}

.service-group + .service-group {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.service-group-head {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.service-group-head h3 {
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-bottom: 0.5rem;
}

.service-group-head p {
  color: var(--fg-muted);
  max-width: 60ch;
}

.card-grid {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.15rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.card-index {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

/* Treatments run dark so the row reads as one block against the white section
   and never competes with the body copy around it. */
.card-treatment {
  background: var(--bg-elevated);
  color: var(--fg-on-dark);
  border: 1px solid oklch(1 0 0 / 0.09);
}

.card-treatment:hover,
.card-treatment.is-active {
  background: oklch(0.145 0 0);
  border-color: var(--accent);
}

.card-treatment p {
  color: var(--fg-muted-on-dark);
  font-size: 0.92rem;
}

.card-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid oklch(1 0 0 / 0.09);
}

/* Natural ratio of the photo: full width, height follows — no fixed frame
   that could leave empty strips of the dark card behind the image. */
.card-media img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transform-origin: center;
  transition: transform 700ms var(--ease);
}

.card-treatment:hover .card-media img,
.card-treatment.is-active .card-media img {
  transform: scale(1.08);
}

/* Stand-in tile used until real photography of each treatment exists. It
   borrows the hexagon of the hero so the section still feels of a piece. */
.card-media-blank {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 3;
  background: radial-gradient(
      115% 95% at 50% 0%,
      color-mix(in oklch, var(--accent) 32%, transparent),
      transparent 72%
    ),
    repeating-linear-gradient(135deg, transparent 0 9px, oklch(1 0 0 / 0.035) 9px 10px),
    var(--bg);
}

.card-media-blank > * {
  grid-area: 1 / 1;
}

.card-media-hex {
  width: clamp(4.25rem, 34%, 5.5rem);
  height: auto;
  fill: none;
  stroke: color-mix(in oklch, var(--accent) 55%, transparent);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
  transition: stroke var(--t-base) var(--ease);
}

.card-media-icon {
  color: color-mix(in oklch, var(--accent) 45%, white);
  transition: color var(--t-base) var(--ease);
}

.card-treatment:hover .card-media-hex,
.card-treatment.is-active .card-media-hex {
  stroke: var(--accent);
}

.card-treatment:hover .card-media-icon,
.card-treatment.is-active .card-media-icon {
  color: var(--fg-on-dark);
}

.card-body {
  padding: 1.35rem 1.35rem 1.6rem;
}

/* Packs stay light but get a blue wash, an accent hairline and a top rule, so
   they read as a separate offer from the treatments above. */
.card-pack {
  padding: 1.6rem 1.5rem 1.75rem;
  background: linear-gradient(
    180deg,
    color-mix(in oklch, var(--accent) 8%, var(--surface)),
    var(--surface) 65%
  );
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  box-shadow: inset 0 3px 0 var(--accent);
}

.card-pack:hover {
  border-color: var(--accent);
}

.card-pack h4 {
  font-style: italic;
  font-size: 1.2rem;
}

.card p.card-pack-price {
  margin: 1.1rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-pack-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-tier {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meter {
  flex: none;
}

.meter-bar {
  fill: var(--fg);
  opacity: 0.16;
}

.meter-bar.is-on {
  fill: var(--accent);
  opacity: 1;
}

/* --------------------------------------------------------------- brands ---- */

.brands .section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.25rem, 3vw, 2rem);
  border-block: 1px solid var(--border-dark);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
  margin: 0;
  padding: 0 clamp(1.5rem, 3.5vw, 3rem);
  list-style: none;
}

.marquee-item img {
  width: auto;
  height: clamp(3.4rem, 6vw, 4.9rem);
  object-fit: contain;
  opacity: 0.72;
  transition: opacity var(--t-base) var(--ease);
}

.brands .marquee:hover .marquee-item img {
  opacity: 1;
}

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

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------------------------------------------------------------- space ---- */

.fullbleed-figure {
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
}

.fullbleed-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* ------------------------------------------------------------ instagram ---- */

.instagram {
  position: relative;
  padding: 0;
  scroll-margin-top: var(--header-h);
  background: var(--bg);
  line-height: 0;
}

.instagram .lightwidget-widget {
  display: block;
  width: 100%;
  border: 0;
  overflow: hidden;
}

/* -------------------------------------------------------------- reviews ---- */

/* Flex rather than grid: the number of Google reviews changes over time and a
   short last row stays balanced instead of leaving a hole. */
.review-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.review {
  display: flex;
  flex: 1 1 min(100%, 18rem);
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  transition: border-color var(--t-base) var(--ease);
}

.review:hover {
  border-color: color-mix(in oklch, var(--accent) 55%, transparent);
}

.stars {
  display: flex;
  gap: 0.15rem;
  color: var(--border-dark);
}

.star.is-on {
  color: var(--accent);
}

.review blockquote {
  margin: 0;
  color: var(--fg-on-dark);
  font-size: 0.98rem;
  line-height: 1.6;
}

.review-author {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted-on-dark);
}

/* ------------------------------------------------------------- location ---- */

.location-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.location-address {
  margin: 1.5rem 0 0;
  font-style: normal;
  color: var(--fg-muted);
  font-size: 1rem;
}

.location-map {
  position: relative;
  width: 100%;
  min-height: 240px;
  height: clamp(240px, 45vw, 280px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--accent) 6%, var(--surface));
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------- footer ---- */

.site-footer {
  background: var(--bg);
  color: var(--fg-on-dark);
  border-top: 1px solid var(--border-dark);
  /* Bottom padding keeps the last row clear of the fixed WhatsApp button. */
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(5.5rem, 8vw, 6.5rem);
}

.footer-inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand img {
  width: 6rem;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  max-width: 34ch;
  color: var(--fg-muted-on-dark);
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  gap: 2rem;
}

.footer-col h2 {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col address {
  font-style: normal;
  color: var(--fg-muted-on-dark);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 36px;
  color: var(--fg-muted-on-dark);
  font-size: 0.95rem;
  transition: color var(--t-fast) var(--ease);
}

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

.footer-link .icon {
  flex: none;
  color: var(--accent);
}

.footer-hours {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--fg-muted-on-dark);
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  color: var(--fg-muted-on-dark);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------ whatsapp ---- */

.whatsapp-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #04220f;
  box-shadow: 0 10px 30px oklch(0 0 0 / 0.4);
  transition: background-color var(--t-fast) var(--ease);
}

.whatsapp-fab:hover {
  background: color-mix(in srgb, var(--whatsapp) 85%, #000);
}

/* ------------------------------------------------------------- reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Without JS every reveal must still be readable. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------- breakpoints ---- */

@media (min-width: 40rem) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 60rem) {
  .nav-desktop {
    display: block;
  }

  .lang-switch {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero-scroll {
    display: grid;
  }

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

  .section-grid-media-first .section-figure {
    order: 0;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Tratamentos: 3 on top, 2 larger below (6-col grid). */
  .card-grid-treatments {
    grid-template-columns: repeat(6, 1fr);
  }

  .card-grid-treatments .card-treatment:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .card-grid-treatments .card-treatment:nth-child(n + 4) {
    grid-column: span 3;
  }

  .location-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .location-map {
    height: clamp(320px, 32vw, 420px);
  }

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

  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hex {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }

  .marquee {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .welcome-slide {
    transition: none;
  }

  .welcome-title-text {
    animation: none;
    background: none;
    color: var(--fg);
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .card-treatment:hover .card-media img,
  .card-treatment.is-active .card-media img {
    transform: none;
  }
}
