@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #cf2a2e;
  --red-dark: #a51c20;
  --ink: #1f2326;
  --ink-soft: #5b6369;
  --white: #ffffff;
  --tint: #f4f5f3;
  --line: #e2e4e1;
  --green: #3f8a2b;

  --font: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --header-h: 72px;
  --bar-h: 74px;
}

[hidden] {
  display: none !important;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.kicker {
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: var(--white);
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  font-size: 1rem;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--red);
}

.site-nav a[aria-current="page"]:not(.nav-phone) {
  color: var(--red);
}

.site-nav .nav-phone {
  padding: 9px 18px;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.site-nav .nav-phone:hover {
  background: var(--red-dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  content: "";
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bars::after {
  position: absolute;
  top: 6px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

.text-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  color: var(--red);
  text-underline-offset: 4px;
  font-variant-numeric: tabular-nums;
}

/* Hero */

.hero-inner {
  padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px);
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.3rem, 6.2vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: clamp(20px, 3vw, 36px);
}

.hero-lead {
  max-width: 30rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Photo that grows from a card to full width as the page scrolls */

.grow {
  --p: 0;
  --side: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  height: 210vh;
}

.grow-stage {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  overflow: hidden;
}

.grow-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(
    0 calc((1 - var(--p)) * var(--side)) calc((1 - var(--p)) * 22%) calc((1 - var(--p)) * var(--side))
    round calc((1 - var(--p)) * 18px)
  );
  transform: scale(calc(1.1 - var(--p) * 0.1));
}

.grow-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(20, 22, 24, 0.72) 0%, rgba(20, 22, 24, 0) 55%);
  opacity: var(--caption, 0);
  pointer-events: none;
}

.grow-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(28px, 6vw, 72px);
  z-index: 1;
  color: var(--white);
  opacity: var(--caption, 0);
  transform: translateY(calc((1 - var(--caption, 0)) * 24px));
}

.grow-caption strong {
  display: block;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.grow-caption span {
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
}

/* Gentle reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.service:nth-child(2) { transition-delay: 0.08s; }
.service:nth-child(3) { transition-delay: 0.16s; }

/* Quick facts */

.facts {
  border-block: 1px solid var(--line);
}

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

.facts-inner > div {
  padding: 24px 24px 24px 0;
}

.facts-inner > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.facts h2 {
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts p {
  font-weight: 500;
}

.facts a {
  color: var(--red);
  font-weight: 600;
  text-underline-offset: 3px;
  font-variant-numeric: tabular-nums;
}

/* Sections */

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section-tint {
  background: var(--tint);
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-lead {
  margin-top: 14px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.service img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.service h3 {
  margin-top: 20px;
  font-size: 1.3rem;
}

.service p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* Materials */

.section-head-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px clamp(28px, 5vw, 72px);
  align-items: end;
  max-width: none;
}

.section-head-wide h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.025em;
}

.section-head-wide .section-lead {
  margin-top: 0;
}

.section-head-wide .text-link {
  margin-top: 12px;
}

.section-head-wide .hero-actions {
  margin-top: 20px;
}

.materials {
  --icon-size: clamp(46px, 5.4vw, 66px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}

/* Every material has its own colours, texture and icon, chosen by data-material
   (a slug of its name, set in assets/main.js and in the <noscript> copies).
   A material without a block below gets the neutral grey look and the gear icon. */

.materials li {
  --a: #aeb4b9;
  --b: #5d646a;
  --tex: linear-gradient(transparent, transparent);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 2.5v2.8M12 18.7v2.8M2.5 12h2.8M18.7 12h2.8M5.3 5.3l2 2M16.7 16.7l2 2M18.7 5.3l-2 2M7.3 16.7l-2 2'/%3E%3C/svg%3E");
  overflow: hidden;
  background: color-mix(in srgb, var(--a) 9%, var(--white));
  border: 1px solid color-mix(in srgb, var(--a) 40%, var(--line));
  border-radius: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.materials li:hover {
  transform: translateY(-6px);
  border-color: var(--a);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--b) 30%, transparent);
}

.swatch {
  position: relative;
  display: block;
  height: clamp(96px, 11vw, 150px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.4) 46%, rgba(255, 255, 255, 0) 60%),
    var(--tex),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 2px, rgba(0, 0, 0, 0.05) 2px 4px),
    linear-gradient(160deg, var(--a), var(--b));
}

/* A bright band sweeps across the metal on hover */
.swatch::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 62%);
  transform: translateX(-130%);
  transition: transform 0.9s ease;
}

.materials li:hover .swatch::before {
  transform: translateX(130%);
}

.swatch::after {
  position: absolute;
  inset: 0;
  width: var(--icon-size);
  height: var(--icon-size);
  margin: auto;
  content: "";
  background: var(--icon) center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.materials li:hover .swatch::after {
  transform: scale(1.18) rotate(-6deg);
}

.materials h3 {
  padding: 18px 20px 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.materials p {
  padding: 6px 20px 22px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.materials h3:last-child {
  padding-bottom: 22px;
}

.materials-more {
  margin-top: clamp(20px, 3vw, 32px);
}

/* Materials page: one compact list, every material the same size (small swatch, then the name) */

.materials-list {
  --icon-size: 26px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.materials-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  background: var(--white);
  border-color: var(--line);
  border-radius: var(--radius);
}

.materials-list li:hover {
  transform: translateY(-2px);
  border-color: var(--a);
  box-shadow: 0 8px 18px rgba(31, 35, 38, 0.08);
}

.materials-list .swatch {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.materials-list h3,
.materials-list h3:last-child {
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .materials.materials-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .materials.materials-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Cards come in one after the other when the list scrolls into view */

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

.materials.reveal:not(.is-visible) li {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
}

.materials.reveal.is-visible li {
  animation: material-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}

@keyframes material-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
}

/* Per-material looks */
.materials li[data-material="cobre"] {
  --a: #f4a46c;
  --b: #9a4219;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 16.5 6.5 9h11l3 7.5z'/%3E%3Cpath d='M3.5 16.5v3h17v-3'/%3E%3Cpath d='M8.5 12.2h7'/%3E%3C/svg%3E");
}

.materials li[data-material="cabos-de-cobre-isolados"] {
  --a: #f08c5c;
  --b: #7a2a12;
  --tex: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0) 0 11px, rgba(255, 255, 255, 0.13) 11px 22px);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5.2'/%3E%3Ccircle cx='12' cy='12' r='1.4'/%3E%3Ccircle cx='12' cy='8.6' r='.9'/%3E%3Ccircle cx='15' cy='13.7' r='.9'/%3E%3Ccircle cx='9' cy='13.7' r='.9'/%3E%3C/svg%3E");
}

.materials li[data-material="motores-eletricos"] {
  --a: #7db3e6;
  --b: #1d4372;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h11.5a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H4z'/%3E%3Cpath d='M17.5 12h3M7 8.5v7M10 8.5v7M13 8.5v7M6 15.5v3M14 15.5v3M4 18.5h12'/%3E%3C/svg%3E");
}

.materials li[data-material="latao"] {
  --a: #f5d977;
  --b: #98690c;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 15h19'/%3E%3Crect x='7.5' y='11' width='9' height='8' rx='1.5'/%3E%3Cpath d='M12 11V6.5M8.8 6.5h6.4'/%3E%3C/svg%3E");
}

.materials li[data-material="inox"] {
  --a: #d1d8db;
  --b: #5b676e;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5h14V18a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z'/%3E%3Cpath d='M3 12.5h2M19 12.5h2M6 10.5a6 3.4 0 0 1 12 0M12 5.5v1.6'/%3E%3C/svg%3E");
}

.materials li[data-material="aluminio"] {
  --a: #c6d6e2;
  --b: #5a7385;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8l1.2 3v12.2a1.3 1.3 0 0 1-1.3 1.3H8.1a1.3 1.3 0 0 1-1.3-1.3V7z'/%3E%3Cpath d='M6.8 7h10.4M10.6 5.5h2.8M9.5 11.5h5M9.5 14.5h5'/%3E%3C/svg%3E");
}

.materials li[data-material="zinco"] {
  --a: #a9c9d1;
  --b: #3b6270;
  --tex: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 7px, rgba(0, 0, 0, 0.09) 7px 14px);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5c1.8-2.4 3.7-2.4 5.5 0s3.7 2.4 5.5 0 3.7-2.4 5.5 0'/%3E%3Cpath d='M3 13c1.8-2.4 3.7-2.4 5.5 0s3.7 2.4 5.5 0 3.7-2.4 5.5 0'/%3E%3Cpath d='M3 17.5c1.8-2.4 3.7-2.4 5.5 0s3.7 2.4 5.5 0 3.7-2.4 5.5 0'/%3E%3C/svg%3E");
}

.materials li[data-material="chumbo"] {
  --a: #9aa2af;
  --b: #2a303a;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 8.5a3 3 0 0 1 6 0'/%3E%3Cpath d='M7.2 8.5h9.6l3.2 10.5H4z'/%3E%3Cpath d='M9.5 13.5h5'/%3E%3C/svg%3E");
}

.materials li[data-material="baterias"] {
  --a: #8fd66e;
  --b: #226418;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='9' width='17' height='10.5' rx='1.6'/%3E%3Cpath d='M7 9V6.2h3V9M14 9V6.2h3V9M7.5 14.2h3M15.5 14.2h3M17 12.7v3'/%3E%3C/svg%3E");
}

.materials li[data-material="placas-eletronicas"] {
  --a: #40b583;
  --b: #0e4731;
  --tex: linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 18px 18px;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='14' height='14' rx='1.6'/%3E%3Crect x='9' y='9' width='6' height='6' rx='.8'/%3E%3Cpath d='M9 2.8v2.2M15 2.8v2.2M9 19v2.2M15 19v2.2M2.8 9H5M2.8 15H5M19 9h2.2M19 15h2.2'/%3E%3C/svg%3E");
}

.materials li[data-material="ferro"] {
  --a: #cf7d54;
  --b: #52241a;
  --tex: radial-gradient(rgba(0, 0, 0, 0.22) 1.2px, transparent 1.7px) 0 0 / 9px 9px, radial-gradient(rgba(255, 170, 100, 0.22) 1px, transparent 1.6px) 4px 4px / 13px 13px;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='3.2' rx='.8'/%3E%3Crect x='3.5' y='16.3' width='17' height='3.2' rx='.8'/%3E%3Crect x='9.8' y='7.7' width='4.4' height='8.6'/%3E%3C/svg%3E");
}

.materials li[data-material="sucata"] {
  --a: #d8a56b;
  --b: #46505b;
  --tex: conic-gradient(from 210deg at 50% 62%, rgba(207, 143, 90, 0.6), rgba(222, 196, 106, 0.55), rgba(174, 188, 198, 0.6), rgba(96, 108, 120, 0.65), rgba(207, 143, 90, 0.6));
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 2.5v2.8M12 18.7v2.8M2.5 12h2.8M18.7 12h2.8M5.3 5.3l2 2M16.7 16.7l2 2M18.7 5.3l-2 2M7.3 16.7l-2 2'/%3E%3C/svg%3E");
}

/* Certificates */

.certs,
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

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

.certs li,
.audience li {
  position: relative;
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cert-doc {
  position: relative;
  display: block;
  width: 44px;
  height: 56px;
  margin-bottom: 18px;
  border: 2px solid var(--red);
  border-radius: 6px;
}

.cert-doc::before {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 12px;
  height: 14px;
  content: "";
  border-block: 2px solid var(--red);
}

.cert-doc::after {
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 22px;
  height: 22px;
  content: "";
  background: var(--red);
  border: 3px solid var(--white);
  border-radius: 50%;
}

.certs p,
.audience p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.draft-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  background: #fff3d6;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a5200;
}

/* Steps */

.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.steps-grid .section-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin-bottom: 0;
}

.steps {
  --fill: 0;
  position: relative;
  counter-reset: step;
}

.steps::before,
.steps::after {
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  content: "";
  background: var(--line);
}

.steps::after {
  background: var(--red);
  transform-origin: top;
  transform: scaleY(var(--fill));
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 clamp(40px, 7vw, 88px) 76px;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  content: counter(step);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 50%;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.steps li.is-done::before {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.steps h3 {
  padding-top: 6px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.steps p {
  max-width: 30rem;
  margin-top: 8px;
  color: var(--ink-soft);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contact-list {
  margin-block: 28px;
  border-top: 1px solid var(--line);
}

.contact-list > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 3px;
}

.contact-list dd {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-list a {
  text-underline-offset: 3px;
}

.contact-list small {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.contact-form {
  padding: clamp(22px, 4vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.contact-form h3 {
  font-size: 1.4rem;
}

.form-note {
  margin-top: 6px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.contact-form label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  background: var(--white);
  border: 1px solid #c9cdc8;
  border-radius: 8px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--red);
}

.form-error {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--red-dark);
}

.form-success {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.form-actions .btn {
  flex: 1 1 200px;
}

/* Footer */

.site-footer {
  padding-block: 36px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.95rem;
}

.footer-links a {
  text-underline-offset: 3px;
}

.footer-copy {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.fabs {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.fab {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(31, 35, 38, 0.25);
}

.fab-whatsapp {
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  background: #25d366;
}

.fab-whatsapp:hover {
  background: #1eb955;
}

.fab-call {
  display: none;
  background: var(--red);
}

.fab-label {
  display: none;
}

#proof-reviews + #proof-photos {
  margin-top: clamp(24px, 4vw, 40px);
}

/* Responsive */

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-phone {
    margin-top: 16px;
    text-align: center;
    border-bottom: 0;
  }

  .services,
  .section-head-wide,
  .certs,
  .steps-grid,
  .contact-grid,
  .facts-inner {
    grid-template-columns: 1fr;
  }

  .steps-grid .section-head {
    position: static;
  }

  .grow {
    height: 170vh;
  }

  .facts-inner > div,
  .facts-inner > div + div {
    padding: 16px 0;
    border-left: 0;
  }

  .facts-inner > div + div {
    border-top: 1px solid var(--line);
  }

  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  /* Call and WhatsApp become a bottom bar in the page flow: the body reserves its height,
     so the bar never covers content, however far the visitor scrolls. */
  body {
    padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  }

  .fabs {
    inset: auto 0 0 0;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 10px;
    min-height: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--line);
  }

  .fab {
    flex: 1 1 0;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    box-shadow: none;
  }

  .fab-whatsapp {
    width: auto;
    height: auto;
    padding: 12px 18px;
  }

  .fab-whatsapp svg {
    width: 26px;
    height: 26px;
  }

  .fab-label,
  .fab-call {
    display: inline-flex;
  }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .site-nav {
    gap: 14px;
    font-size: 0.92rem;
  }

  .site-nav .nav-phone {
    display: none;
  }
}

@media (max-width: 980px) {
  .materials:not(.materials-list),
  .audience {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .audience {
    grid-template-columns: 1fr;
  }
}

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

  .btn,
  .reveal,
  .steps li::before,
  .materials li,
  .swatch::before,
  .swatch::after {
    transition: none;
  }

  .materials.reveal:not(.is-visible) li {
    opacity: 1;
    transform: none;
  }

  .materials.reveal.is-visible li {
    animation: none;
  }

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

  .grow {
    height: auto;
  }

  .grow-stage {
    position: relative;
    top: 0;
    height: 70svh;
  }
}
