/* ==========================================================
   BANTU POOLS — 2026 Design System
   Fluid type · oklch color · bento grids · scroll-driven motion
   ========================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Color — oklch palette */
  --ink: oklch(19% 0.033 252);
  --ink-2: oklch(23% 0.042 252);
  --ink-3: oklch(29% 0.05 250);
  --paper: oklch(98.6% 0.004 230);
  --paper-2: oklch(96% 0.01 230);
  --line: oklch(90.5% 0.013 240);
  --text: oklch(26% 0.032 252);
  --text-2: oklch(46% 0.026 250);
  --text-3: oklch(62% 0.02 248);

  --azure: oklch(58% 0.155 247);
  --azure-deep: oklch(46% 0.135 250);
  --aqua: oklch(84% 0.1 213);
  --cyan: oklch(72% 0.125 222);
  --gold: oklch(80% 0.13 80);
  --whatsapp: oklch(70% 0.18 152);

  --grad-water: linear-gradient(100deg, var(--aqua), var(--cyan) 55%, oklch(68% 0.14 245));
  --grad-cta: linear-gradient(135deg, var(--azure), var(--azure-deep));

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Manrope', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --fs-display: clamp(2.7rem, 1.2rem + 6.2vw, 5.2rem);
  --fs-h2: clamp(1.9rem, 1.1rem + 3vw, 3.1rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 0.97rem + 0.35vw, 1.25rem);
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;

  /* Rhythm */
  --section: clamp(4.5rem, 3rem + 7vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Shape & depth */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --shadow-sm: 0 1px 2px oklch(20% 0.03 250 / 0.06), 0 4px 12px oklch(20% 0.03 250 / 0.05);
  --shadow-md: 0 2px 4px oklch(20% 0.03 250 / 0.05), 0 12px 32px oklch(20% 0.03 250 / 0.1);
  --shadow-lg: 0 4px 8px oklch(20% 0.03 250 / 0.05), 0 24px 64px oklch(20% 0.03 250 / 0.16);
  --shadow-azure: 0 8px 28px oklch(58% 0.155 247 / 0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.22s var(--ease-out);
  --t-base: 0.45s var(--ease-out);

  /* Grain texture (data URI, CSP-safe) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Cross-document view transitions between pages */
@view-transition {
  navigation: auto;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

ul,
ol {
  list-style: none;
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* SVG sprite: the hidden attribute is unreliable on <svg> */
svg[hidden] {
  display: none;
}

::selection {
  background: var(--azure);
  color: #fff;
}

:focus-visible {
  outline: 3px solid oklch(58% 0.155 247 / 0.55);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ---------- Layout Utilities ---------- */
.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--alt {
  background: var(--paper-2);
}

.section--dark {
  background: var(--ink);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-sm);
  transform: translateY(-300%);
  transition: transform var(--t-fast);
}

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

/* Section headers */
.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 720px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--azure);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad-cta);
  rotate: 45deg;
}

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

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: var(--fs-lead);
  color: var(--text-2);
  line-height: 1.6;
}

.section--dark .section-sub {
  color: oklch(85% 0.015 240 / 0.85);
}

/* Gradient highlight word */
.tint {
  background: var(--grad-water);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), filter var(--t-fast);
  will-change: transform;
}

.btn:active {
  transform: scale(0.97);
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
}

.btn--primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-azure);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 36px oklch(58% 0.155 247 / 0.45);
}

.btn--white {
  background: #fff;
  color: var(--azure-deep);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  border: 1.5px solid oklch(100% 0 0 / 0.35);
  color: #fff;
  background: oklch(100% 0 0 / 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: oklch(100% 0 0 / 0.14);
  border-color: oklch(100% 0 0 / 0.6);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.06rem;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 28px oklch(70% 0.18 152 / 0.4);
}

.btn--whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* Inline arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--azure);
}

.link-arrow .icon {
  transition: translate var(--t-fast);
}

.link-arrow:hover .icon {
  translate: 4px 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-top: clamp(0.6rem, 2vw, 1rem);
  pointer-events: none;
}

.nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
  padding-inline: 0.6rem 0.6rem;
  background: oklch(100% 0 0 / 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid oklch(100% 0 0 / 0.55);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), background-color var(--t-base);
}

.nav--scrolled .nav__inner {
  background: oklch(100% 0 0 / 0.88);
  box-shadow: var(--shadow-md);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.nav__logo img {
  height: 42px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-2);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--t-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-cta);
  transition: right var(--t-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link--active::after {
  right: 0;
}

.nav__cta {
  padding: 0.6rem 1.3rem;
  font-size: var(--fs-sm);
}

/* Burger */
.nav__toggle {
  display: none;
  position: relative;
  z-index: 1102;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--t-base), opacity var(--t-fast);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(7rem, 14vh, 9rem) clamp(2.5rem, 5vh, 4rem);
  overflow: clip;
  background: var(--ink);
}

.hero__bg,
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__bg img {
  object-fit: cover;
  object-position: center 65%;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    var(--noise),
    linear-gradient(90deg, oklch(15% 0.035 250 / 0.74) 0%, oklch(15% 0.035 250 / 0.38) 52%, oklch(15% 0.035 250 / 0.08) 100%),
    linear-gradient(200deg, oklch(20% 0.04 250 / 0.18) 0%, oklch(17% 0.038 250 / 0.4) 55%, oklch(15% 0.035 250 / 0.82) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: oklch(100% 0 0 / 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid oklch(100% 0 0 / 0.2);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(78% 0.2 152);
  box-shadow: 0 0 0 0 oklch(78% 0.2 152 / 0.6);
  animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 9px oklch(78% 0.2 152 / 0);
  }

  100% {
    box-shadow: 0 0 0 0 oklch(78% 0.2 152 / 0);
  }
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero__desc {
  font-size: var(--fs-lead);
  color: oklch(94% 0.008 230 / 0.85);
  max-width: 56ch;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Glass stat strip */
.hero__stats {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: oklch(100% 0 0 / 0.08);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid oklch(100% 0 0 / 0.16);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  padding: 1.4rem 1.5rem;
  color: #fff;
}

.stat + .stat {
  border-left: 1px solid oklch(100% 0 0 / 0.12);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-water);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(92% 0.01 230 / 0.66);
  margin-top: 0.25rem;
}

/* Scroll-driven hero parallax (progressive enhancement) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__bg img {
      animation: hero-drift linear both;
      animation-timeline: scroll();
      animation-range: 0 100vh;
    }

    @keyframes hero-drift {
      to {
        transform: translateY(9%) scale(1.06);
      }
    }
  }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--paper);
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: clip;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

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

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-2);
  white-space: nowrap;
}

.marquee__item::after {
  content: '✦';
  color: var(--azure);
  font-size: 0.8em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Services Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.bento__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.bento__card--lg {
  grid-column: span 7;
  grid-row: span 2;
}

.bento__card--md {
  grid-column: span 5;
}

.bento__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  flex: 1;
}

.bento__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: oklch(58% 0.155 247 / 0.1);
  color: var(--azure);
  transition: background-color var(--t-base), color var(--t-base), transform var(--t-base);
}

.bento__icon .icon {
  width: 24px;
  height: 24px;
}

.bento__card:hover .bento__icon {
  background: var(--azure);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}

.bento__title {
  font-size: var(--fs-h3);
}

.bento__desc {
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.65;
}

.bento__body .link-arrow {
  margin-top: auto;
  padding-top: 0.5rem;
}

.bento__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.bento__card--lg .bento__media {
  aspect-ratio: auto;
  flex: 1;
  min-height: 260px;
}

.bento__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.bento__card:hover .bento__media img {
  transform: scale(1.06);
}

/* Quote tile */
.bento__card--cta {
  background: var(--ink);
  border: none;
  justify-content: space-between;
}

.bento__card--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    var(--noise),
    radial-gradient(90% 110% at 90% -10%, oklch(58% 0.155 247 / 0.5), transparent 60%),
    radial-gradient(70% 90% at 0% 110%, oklch(72% 0.125 222 / 0.3), transparent 55%);
  pointer-events: none;
}

.bento__card--cta .bento__body {
  position: relative;
}

.bento__card--cta .bento__title {
  color: #fff;
}

.bento__card--cta .bento__desc {
  color: oklch(90% 0.01 230 / 0.78);
}

/* ---------- Before / After Slider ---------- */
.ba-section {
  position: relative;
  overflow: clip;
}

.ba-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    var(--noise),
    radial-gradient(60% 80% at 85% 15%, oklch(58% 0.155 247 / 0.25), transparent 60%),
    radial-gradient(50% 70% at 8% 90%, oklch(72% 0.125 222 / 0.16), transparent 55%);
  pointer-events: none;
}

.ba-section .container {
  position: relative;
}

.ba {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  --pos: 50%;
  isolation: isolate;
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba__after {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 18px oklch(20% 0.03 250 / 0.45);
  pointer-events: none;
  z-index: 2;
}

.ba__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  grid-auto-flow: column;
  gap: 2px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.ba__handle .icon {
  width: 16px;
  height: 16px;
}

.ba__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
  margin: 0;
}

.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 60px;
  height: 900px;
}

.ba__range::-moz-range-thumb {
  width: 60px;
  height: 900px;
  border: none;
}

.ba:has(.ba__range:focus-visible) {
  outline: 3px solid oklch(84% 0.1 213 / 0.8);
  outline-offset: 4px;
}

.ba__chip {
  position: absolute;
  top: 1.1rem;
  z-index: 2;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.ba__chip--before {
  right: 1.1rem;
  background: oklch(20% 0.03 250 / 0.55);
  color: #fff;
}

.ba__chip--after {
  left: 1.1rem;
  background: oklch(100% 0 0 / 0.85);
  color: var(--ink);
}

.ba__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: oklch(85% 0.015 240 / 0.7);
}

/* ---------- Process Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px oklch(58% 0.155 247 / 0.55);
  margin-bottom: 1rem;
}

.step__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step__title .icon {
  color: var(--azure);
}

.step__desc {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ---------- Gallery (scroll-snap) ---------- */
.gallery {
  position: relative;
}

.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 38vw, 460px);
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: 0.5rem 1.5rem;
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__card {
  position: relative;
  scroll-snap-align: start;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
}

.gallery__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.gallery__card:hover img {
  transform: scale(1.05);
}

.gallery__caption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  right: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  background: oklch(18% 0.03 250 / 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid oklch(100% 0 0 / 0.14);
  color: #fff;
}

.gallery__caption strong {
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
}

.gallery__caption span {
  font-size: var(--fs-xs);
  color: oklch(90% 0.01 230 / 0.7);
  white-space: nowrap;
}

.gallery__nav {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.gallery__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #fff;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.gallery__btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.gallery__btn .icon {
  width: 18px;
  height: 18px;
}

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.quote-card__stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.quote-card__stars .icon {
  width: 17px;
  height: 17px;
}

.quote-card__text {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
}

.quote-card__author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.quote-card__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #fff;
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}

.quote-card__name {
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.3;
}

.quote-card__meta {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

.faq__item:hover {
  border-color: oklch(58% 0.155 247 / 0.4);
}

.faq__item[open] {
  box-shadow: var(--shadow-md);
  border-color: oklch(58% 0.155 247 / 0.4);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: oklch(58% 0.155 247 / 0.1);
  color: var(--azure);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  transition: rotate var(--t-base), background-color var(--t-base), color var(--t-base);
}

.faq__item[open] .faq__q::after {
  rotate: 45deg;
  background: var(--azure);
  color: #fff;
}

.faq__a {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.7;
  max-width: 62ch;
}

/* ---------- CTA Panel ---------- */
.cta {
  padding-block: 0 var(--section);
}

.cta__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--ink);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

.cta__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    var(--noise),
    radial-gradient(75% 100% at 80% 0%, oklch(58% 0.155 247 / 0.55), transparent 60%),
    radial-gradient(60% 80% at 10% 100%, oklch(72% 0.125 222 / 0.35), transparent 55%);
  pointer-events: none;
}

.cta__content {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
}

.cta__title {
  font-size: var(--fs-h2);
  color: #fff;
  margin-bottom: 1rem;
}

.cta__desc {
  color: oklch(92% 0.01 230 / 0.82);
  font-size: var(--fs-lead);
  margin-bottom: 2.25rem;
}

.cta__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta__note {
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  color: oklch(90% 0.01 230 / 0.55);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: oklch(88% 0.012 235 / 0.75);
  padding-top: var(--section);
  overflow: clip;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 1.2rem 0.45rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.footer__logo img {
  height: 36px;
  width: auto;
}

.footer__desc {
  font-size: var(--fs-sm);
  line-height: 1.8;
  max-width: 320px;
}

.footer__title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.4rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  width: fit-content;
  transition: color var(--t-fast), translate var(--t-fast);
}

.footer__link:hover {
  color: var(--aqua);
  translate: 3px 0;
}

.footer__link .icon {
  width: 16px;
  height: 16px;
  color: var(--aqua);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  border-top: 1px solid oklch(100% 0 0 / 0.09);
  font-size: var(--fs-xs);
}

.footer__watermark {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12.5vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.78;
  white-space: nowrap;
  text-align: center;
  color: oklch(100% 0 0 / 0.045);
  user-select: none;
  pointer-events: none;
  translate: 0 12%;
}

/* ---------- WhatsApp FAB ---------- */
.fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 900;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 30px oklch(70% 0.18 152 / 0.45);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--whatsapp);
  animation: fab-pulse 2.6s ease-out infinite;
}

@keyframes fab-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.fab:hover {
  transform: scale(1.08);
}

.fab .icon {
  width: 28px;
  height: 28px;
}

/* ---------- Services Page ---------- */
.page-hero {
  position: relative;
  background: var(--ink);
  padding: clamp(8.5rem, 18vh, 12rem) 0 clamp(3.5rem, 8vh, 6rem);
  overflow: clip;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    var(--noise),
    radial-gradient(70% 110% at 85% -10%, oklch(58% 0.155 247 / 0.45), transparent 60%),
    radial-gradient(50% 80% at 5% 110%, oklch(72% 0.125 222 / 0.25), transparent 55%);
}

.page-hero .container {
  position: relative;
}

.page-hero__title {
  font-size: clamp(2.4rem, 1.2rem + 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.page-hero__desc {
  font-size: var(--fs-lead);
  color: oklch(92% 0.01 230 / 0.8);
  max-width: 56ch;
}

/* Segmented tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  width: fit-content;
  max-width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

.tab .icon {
  width: 17px;
  height: 17px;
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* Panels */
.panel[hidden] {
  display: none;
}

.panel {
  animation: panel-in 0.5s var(--ease-out);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.panel__header {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.panel__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}

.panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel__info h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

.panel__info > p {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

/* Feature checklist */
.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
}

.check {
  display: flex;
  gap: 0.9rem;
  padding: 1.2rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.check:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: oklch(58% 0.155 247 / 0.35);
}

.check__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: oklch(58% 0.155 247 / 0.1);
  color: var(--azure);
}

.check__icon .icon {
  width: 17px;
  height: 17px;
}

.check__title {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-body);
  letter-spacing: 0;
  margin-bottom: 0.15rem;
}

.check__desc {
  font-size: var(--fs-sm);
  color: var(--text-2);
}

/* Guarantee strip */
.assure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.assure__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--r-md);
  background: oklch(100% 0 0 / 0.06);
  border: 1px solid oklch(100% 0 0 / 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.assure__item .icon {
  width: 26px;
  height: 26px;
  color: var(--aqua);
  flex: none;
}

.assure__item strong {
  display: block;
  font-size: 0.97rem;
}

.assure__item span {
  font-size: var(--fs-xs);
  color: oklch(90% 0.01 230 / 0.65);
}

/* Single testimonial banner */
.testimonial {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}

.testimonial__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  max-width: 740px;
  margin: 0 auto 1.5rem;
  color: var(--ink);
  text-wrap: balance;
}

.testimonial__author {
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--azure);
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* No-JS fallback: keep everything visible */
@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 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;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento__card--lg,
  .bento__card--md {
    grid-column: span 6;
  }

  .bento__card--lg {
    grid-row: span 1;
  }

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

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

  .steps {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .quotes {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 820px) {

  /* backdrop-filter on the pill creates a containing block that would trap
     the fixed full-screen menu — disable it while the menu is open */
  .nav:has(.nav__links.open) .nav__inner {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 1100;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    background: oklch(17% 0.033 252 / 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
  }

  .nav__links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links .nav__link {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 7vw, 2.4rem);
    font-weight: 700;
    color: #fff;
  }

  .nav__links .nav__cta {
    margin-top: 1rem;
    font-size: 1.05rem;
    padding: 0.9rem 2rem;
  }

  .nav__toggle {
    display: flex;
  }

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

  .stat:nth-child(odd) {
    border-left: none;
  }

  .stat:nth-child(n+3) {
    border-top: 1px solid oklch(100% 0 0 / 0.12);
  }

  .bento__card--lg,
  .bento__card--md {
    grid-column: span 12;
  }

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

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

  .ba {
    aspect-ratio: 4 / 3;
  }

  /* Touch devices swipe the gallery natively; arrows can collide with the FAB */
  .gallery__nav {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }
}
