/* ==========================================================================
   DS Instalações e Serviços — design tokens (palette from the logo)
   ========================================================================== */
:root {
  --ink-950: #07090c;
  --ink-900: #0e1115;
  --ink-800: #171b20;
  --ink-700: #262b32;
  --ink-500: #4b525c;
  --ink-400: #6b727c;
  --ink-200: #d9dce1;
  --ink-100: #eceef1;
  --paper: #ffffff;
  --tint: #f4f6f8;

  --accent-700: #0053c3;
  --accent-600: #0066dd;
  --accent-500: #0d8afa;
  --accent-400: #4aa8ff;
  --accent-100: #e7f2ff;

  --wa: #25d366;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(14, 17, 21, .06), 0 2px 8px rgba(14, 17, 21, .04);
  --shadow: 0 2px 4px rgba(14, 17, 21, .04), 0 12px 32px -8px rgba(14, 17, 21, .14);
  --shadow-lg: 0 30px 60px -20px rgba(7, 9, 12, .45);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-500);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

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

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--accent-500);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   Buttons, eyebrow, links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s, color .25s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }

.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent-600);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(13, 138, 250, .6), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn--primary:hover {
  background: var(--accent-700);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(13, 138, 250, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--ink-200);
  background: var(--paper);
  color: var(--ink-900);
}
.btn--outline:hover {
  border-color: var(--ink-900);
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--ink-900);
}
.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow--light { color: var(--accent-400); }
.hero .eyebrow::before { display: none; }

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-500);
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-500);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.link {
  color: var(--accent-600);
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .3s var(--ease);
}
.link:hover { background-size: 100% 1.5px; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s, box-shadow .3s, height .3s;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header.is-scrolled {
  --header-h: 66px;
  background: rgba(14, 17, 21, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -10px rgba(0, 0, 0, .4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.brand__logo { width: auto; height: 34px; }
.brand__name {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}
.brand__name small {
  display: block;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--accent-400);
}
.footer__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 220px;
}
.footer__logo img { width: 100%; height: auto; }
.footer__logo-name {
  margin-right: -.6em;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .6em;
  text-transform: uppercase;
  color: #fff;
}
.footer__logo-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: .54rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, .7);
}
.footer__logo-tag::before,
.footer__logo-tag::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--accent-500);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__list {
  display: flex;
  gap: 4px;
}
.nav__list a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .72);
  transition: color .2s, background-color .2s;
}
.nav__list a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav__list a.is-active { color: #fff; background: rgba(255, 255, 255, .1); }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ==========================================================================
   Hero — full-bleed photo slideshow
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: min(100vh, 940px);
  min-height: min(100svh, 940px);
  padding: calc(var(--header-h) + 64px) 0 40px;
  background: var(--ink-950);
  color: rgba(255, 255, 255, .78);
  isolation: isolate;
}
.hero > .container { display: flex; }

.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, .95) 0%, rgba(7, 9, 12, .82) 35%, rgba(7, 9, 12, .4) 68%, rgba(7, 9, 12, .55) 100%),
    linear-gradient(0deg, rgba(7, 9, 12, .96) 0%, rgba(7, 9, 12, 0) 38%),
    linear-gradient(180deg, rgba(7, 9, 12, .7) 0%, rgba(7, 9, 12, 0) 22%),
    radial-gradient(50% 60% at 15% 85%, rgba(0, 83, 195, .28), transparent 70%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}
.hero__content { max-width: 720px; margin-top: auto; margin-bottom: auto; }

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent-400), var(--accent-500) 60%, #a8d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 580px;
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__trust { display: flex; flex-wrap: wrap; }
.hero__trust li {
  display: flex;
  flex-direction: column;
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid rgba(255, 255, 255, .12);
}
.hero__trust li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__trust strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero__trust span { font-size: .85rem; }

.hero__nav { text-align: right; }
.hero__caption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  transition: opacity .4s;
}
.hero__caption::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(13, 138, 250, .25);
}
.hero__caption.is-changing { opacity: 0; }
.hero__dots { display: flex; justify-content: flex-end; gap: 8px; }
.hero__dot {
  position: relative;
  width: 48px;
  height: 24px;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero__dot::before,
.hero__dot::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .22);
}
.hero__dot::after {
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dot.is-active::after { animation: dotProgress var(--slide-ms, 6000ms) linear forwards; }
.hero__dot:hover::before { background: rgba(255, 255, 255, .45); }
@keyframes dotProgress { to { transform: scaleX(1); } }

/* ==========================================================================
   Segments strip
   ========================================================================== */
.segments {
  background: var(--ink-950);
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .55);
}
.segments__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.segments__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-400);
  white-space: nowrap;
}
.segments__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
}
.segments__list li { display: flex; align-items: center; }
.segments__list li + li::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-right: 32px;
  border-radius: 50%;
  background: var(--accent-500);
  opacity: .6;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 112px 0; }
.section--tint { background: var(--tint); }
.section--dark {
  background: var(--ink-900);
  color: rgba(255, 255, 255, .65);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 100% 0%, rgba(13, 138, 250, .14), transparent 60%);
  pointer-events: none;
}
.section--dark .container { position: relative; }

.section-head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  margin-bottom: 16px;
}
.section-head p:not(.eyebrow) { font-size: 1.075rem; }
.section-head--light h2 { color: #fff; }
.section-head--left { text-align: left; margin: 0; }
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  text-align: left;
}
.section-head--split h2 { margin-bottom: 0; }
.section-head--split > p { max-width: 400px; }

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.service__num {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-200);
}
.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: var(--accent-100);
  color: var(--accent-600);
  transition: background-color .35s, color .35s;
}
.service__icon .icon { width: 26px; height: 26px; }
.service:hover .service__icon { background: var(--accent-500); color: #fff; }
.service h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service > p { font-size: .95rem; margin-bottom: 24px; }
.service__list {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--ink-100);
  display: grid;
  gap: 8px;
  font-size: .88rem;
  color: var(--ink-700);
}
.service__list li { display: flex; align-items: center; gap: 8px; }
.service__list .icon { color: var(--accent-500); width: 16px; height: 16px; stroke-width: 2.25; }

/* ==========================================================================
   About
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}
.about__media {
  position: relative;
  aspect-ratio: 1 / 1.08;
  max-width: 520px;
}
.about__photo {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--a { top: 0; left: 0; width: 58%; height: 100%; }
.about__photo--a img { object-position: center 35%; }
.about__photo--b {
  right: 0;
  bottom: 9%;
  width: 60%;
  height: 38%;
  border: 6px solid var(--tint);
}
.about__stat {
  position: absolute;
  right: 0;
  top: 10%;
  width: 36%;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--ink-900);
  color: rgba(255, 255, 255, .7);
  font-size: .82rem;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
}
.about__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-400);
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.about__content h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 24px;
}
.about__content > p:not(.eyebrow) { margin-bottom: 16px; font-size: 1.05rem; }

.features {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}
.features li { display: flex; gap: 16px; align-items: flex-start; }
.features__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--paper);
  color: var(--accent-600);
  box-shadow: var(--shadow-sm);
}
.features__icon .icon { width: 22px; height: 22px; }
.features strong { display: block; color: var(--ink-900); font-weight: 600; margin-bottom: 2px; }
.features span { font-size: .93rem; }

/* ==========================================================================
   Process
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .3s, border-color .3s;
}
.step:hover { background: rgba(255, 255, 255, .06); border-color: rgba(13, 138, 250, .35); }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 50%;
  border: 1px solid rgba(13, 138, 250, .45);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent-400);
}
.step h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .95rem; }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 54px;
  left: 84px;
  right: -10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(13, 138, 250, .45), transparent);
}

/* ==========================================================================
   Portfolio gallery
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.filter {
  padding: 10px 18px;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-700);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: var(--ink-400); color: var(--ink-900); }
.filter.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery.is-collapsed {
  max-height: 920px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.gallery-more { display: flex; justify-content: center; margin-top: 8px; }
.gallery:not(.is-collapsed) + .gallery-more { display: none; }
.work--wide { grid-column: span 2; }
.work--tall { grid-row: span 2; }
.work--big { grid-column: span 2; grid-row: span 2; }
/* Filtered views: justified rows so any number of photos fills the width */
.gallery.is-filtered { display: flex; flex-wrap: wrap; }
.gallery.is-filtered .work {
  flex: 1 1 calc((100% - (var(--cols, 3) - 1) * 14px) / var(--cols, 3));
  height: 340px;
}
.work {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-100);
  cursor: zoom-in;
  isolation: isolate;
}
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.work::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 12, 0) 45%, rgba(7, 9, 12, .85));
}
.work__cap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.3;
  transform: translateY(4px);
  transition: transform .4s var(--ease);
}
.work__tag {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-400);
}
.work__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .3s, transform .3s var(--ease);
}
.work__zoom .icon { width: 18px; height: 18px; }
.work:hover img { transform: scale(1.06); }
.work:hover .work__cap { transform: none; }
.work:hover .work__zoom,
.work:focus-visible .work__zoom { opacity: 1; transform: none; }
.work.is-hidden { display: none; }
.work.is-entering { animation: workIn .5s var(--ease); }
@keyframes workIn { from { opacity: 0; transform: scale(.96); } }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 72px 96px;
  border: 0;
  background: rgba(7, 9, 12, .95);
  color: #fff;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbIn .3s ease;
}
.lightbox::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } }
:root:has(.lightbox[open]) { overflow: hidden; }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  max-height: calc(100svh - 190px);
  width: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.lightbox__img.is-loaded { animation: lbImg .4s var(--ease); }
@keyframes lbImg { from { opacity: 0; transform: scale(.98); } }
.lightbox__cap {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}
.lightbox__count {
  font-family: var(--font-body);
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
  font-variant-numeric: tabular-nums;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.lightbox__btn:hover { background: var(--accent-600); border-color: var(--accent-600); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__btn--close { top: 20px; right: 20px; }
.lightbox__btn--prev { left: 24px; top: 50%; margin-top: -26px; }
.lightbox__btn--next { right: 24px; top: 50%; margin-top: -26px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.testimonial blockquote {
  position: relative;
  flex: 1;
  margin-bottom: 28px;
  padding-top: 40px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-700);
}
.testimonial blockquote::before {
  content: '\201C';
  position: absolute;
  top: -14px;
  left: -4px;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent-500);
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-100);
  font-size: .85rem;
}
.testimonial figcaption strong { display: block; color: var(--ink-900); font-size: .95rem; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--accent-400);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
}

/* ==========================================================================
   Emergency band
   ========================================================================== */
.emergency {
  background: linear-gradient(110deg, var(--accent-700), var(--accent-600) 55%, var(--accent-500));
  color: rgba(255, 255, 255, .92);
  position: relative;
  overflow: hidden;
}
.emergency::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 28px);
}
.emergency__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 52px;
}
.emergency__text { display: flex; gap: 22px; align-items: flex-start; max-width: 720px; }
.emergency__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.emergency__icon .icon { width: 28px; height: 28px; }
.emergency h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__list { border-top: 1px solid var(--ink-100); }
.faq__item { border-bottom: 1px solid var(--ink-100); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.075rem;
  font-weight: 500;
  color: var(--ink-900);
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-600); }
.faq__item summary .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--ink-900);
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.faq__item[open] summary .icon { transform: rotate(45deg); background: var(--accent-500); color: #fff; }
.faq__item p { padding: 0 56px 24px 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: start;
}
.contact__info h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.contact__lead { font-size: 1.05rem; margin-bottom: 40px; }
.contact__list { display: grid; gap: 24px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list strong {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 2px;
}
.contact__list a, .contact__list span { color: var(--ink-900); font-weight: 500; }
.contact__list a:hover { color: var(--accent-600); }
.contact__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--paper);
  color: var(--accent-600);
  box-shadow: var(--shadow-sm);
}
.contact__icon .icon { width: 20px; height: 20px; }

.form {
  display: grid;
  gap: 18px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink-900); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-900);
  font-size: .975rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5873' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}
.field ::placeholder { color: var(--ink-400); opacity: .7; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-400); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(13, 138, 250, .14);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #d92d20; }
.form__status { font-size: .9rem; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-error { color: #d92d20; }
.form__status.is-success { color: #067647; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink-950);
  color: rgba(255, 255, 255, .55);
  padding: 88px 0 32px;
  font-size: .95rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer__brand p { margin: 20px 0 24px; max-width: 320px; }
.footer h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--accent-400); }

.social { display: flex; gap: 10px; }
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.social a:hover { background: var(--accent-500); border-color: var(--accent-500); color: #fff; transform: translateY(-2px); }
.social .icon { width: 18px; height: 18px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  font-size: .85rem;
}
.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: .85;
  transition: opacity .2s;
}
.footer__credit:hover { opacity: 1; }
.footer__credit img { width: auto; height: 38px; }
.link-top:hover { color: #fff; }

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float .icon { width: 28px; height: 28px; stroke-width: 1.9; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 34px -8px rgba(37, 211, 102, .85); }

/* ==========================================================================
   Reveal on scroll (enabled by JS only)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .services, .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .nav { gap: 16px; }
  .nav__list a { padding: 8px 9px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .menu-toggle { display: grid; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 24px 28px;
    background: rgba(14, 17, 21, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__list a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav__cta { padding: 14px; font-size: 1rem; }
  .header.menu-open { background: rgba(14, 17, 21, .97); }

  .hero { padding: calc(var(--header-h) + 48px) 0 32px; }
  .hero__footer { flex-direction: column; align-items: flex-start; }
  .hero__nav { text-align: left; }
  .hero__dots { justify-content: flex-start; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery.is-filtered .work { flex-basis: calc(50% - 7px); height: 300px; }

  .about { grid-template-columns: 1fr; gap: 56px; }
  .about__media { justify-self: center; width: 100%; }

  .faq { grid-template-columns: 1fr; gap: 40px; }
  .faq .section-head { position: static; }

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

  .testimonials { grid-template-columns: 1fr 1fr; }
  .testimonials > :last-child { grid-column: 1 / -1; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .section-head--split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .emergency__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }

  .brand { gap: 12px; }
  .brand__logo { height: 30px; }
  .brand__name { max-width: 130px; padding-left: 12px; font-size: .62rem; }
  .brand__name small { display: none; }
  .hero__lead { font-size: 1.025rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__trust { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero__trust li { padding: 0 12px; margin: 0; }
  .hero__trust li:first-child { padding-left: 0; }
  .hero__trust strong { font-size: 1.4rem; }
  .hero__trust span { font-size: .75rem; line-height: 1.35; margin-top: 4px; }
  .hero__bg { background: linear-gradient(0deg, rgba(7, 9, 12, .97) 0%, rgba(7, 9, 12, .82) 55%, rgba(7, 9, 12, .6) 100%); }
  .hero__footer { gap: 20px; }
  .gallery { grid-auto-rows: 140px; gap: 10px; }
  .gallery.is-collapsed { max-height: 760px; }
  .gallery.is-filtered .work { flex-basis: calc(50% - 5px); height: 220px; }
  .work { border-radius: 12px; }
  .work--big { grid-row: span 2; }
  .work__cap { left: 12px; right: 12px; bottom: 10px; font-size: .8rem; }
  .work__tag { font-size: .6rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { white-space: nowrap; }
  .lightbox { padding: 64px 12px 104px; }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 28px; margin-top: 0; }
  .lightbox__btn--prev { left: calc(50% - 64px); }
  .lightbox__btn--next { right: calc(50% - 64px); }

  .segments__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .segments__list { gap: 8px; font-size: .88rem; }
  .segments__list li {
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
  }
  .segments__list li + li::before { display: none; }

  .services, .steps, .testimonials { grid-template-columns: 1fr; }

  .about__stat { width: 44%; padding: 16px; }
  .about__stat strong { font-size: 2rem; }

  .emergency__text { flex-direction: column; gap: 16px; }
  .emergency .btn { width: 100%; }

  .faq__item p { padding-right: 0; }

  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
