/* =========================================================
   FERTRAM — Indústria e Comércio de Peças e Serviços Ltda
   Sistema de design | Araraquara/SP
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul[class] { list-style: none; padding: 0; }

img, svg, video { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- Tokens ---------- */
:root {
  /* Escala de azul industrial — navio/aço azulado */
  --ink:        #0a1a2b;
  --ink-2:      #10253a;
  --ink-3:      #173049;
  --steel:      #2e4459;
  --muted:      #56697d;
  --muted-2:    #8398ac;
  --line:       #dbe4ed;
  --line-dark:  #1f3a52;
  --bg:         #ffffff;
  --bg-2:       #f2f7fa;
  --bg-3:       #e6eef5;

  /* Turquesa industrial — sinalização, precisão, engenharia */
  --accent:      #0b7f92;   /* turquesa profundo: legível sobre branco */
  --accent-hover:#096a7b;   /* estado hover do botão principal */
  --accent-2:    #35cfe3;   /* turquesa claro: só sobre fundo escuro */
  --accent-ink:  #03222a;   /* texto sobre tinta turquesa clara */

  --maxw: 1220px;
  --header-h: 76px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);

  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(10, 26, 43, .06), 0 2px 8px rgba(10, 26, 43, .04);
  --shadow:    0 2px 6px rgba(10, 26, 43, .07), 0 12px 32px rgba(10, 26, 43, .09);
  --shadow-lg: 0 8px 24px rgba(10, 26, 43, .12), 0 32px 64px rgba(10, 26, 43, .14);

  --f-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --t: 220ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--steel);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: var(--f-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.01em; }

/* Entrelinha de display (1.08) aperta demais titulos pequenos quando quebram
   em duas linhas. Titulos de apoio usam uma entrelinha proporcional. */
h3, h4 { line-height: 1.25; }

/* Escala auxiliar de titulos dentro de paineis e blocos — substitui os
   font-size soltos que existiam no HTML e que variavam de pagina para pagina. */
.h-panel { font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.15; }
.h-block { font-size: clamp(1.15rem, 1.9vw, 1.3rem); }
.h-mini  { font-size: 1.02rem; letter-spacing: -.005em; }

p { text-wrap: pretty; }

/* Blocos centralizados: 'pretty' deixa a ultima linha orfa; 'balance'
   distribui as linhas e elimina o recorte irregular no mobile. */
.text-center, .cta p, .cta h2 { text-wrap: balance; }

/* Cabecalho fixo cobria o titulo ao chegar por link com ancora
   (rodape -> servicos.html#usinagem, por exemplo). */
:target,
[id]:not(body) { scroll-margin-top: calc(var(--header-h) + 1rem); }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section--dark {
  background: var(--ink);
  color: #b3c3d2;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.section--alt { background: var(--bg-2); }

/* Cabeçalho de seção */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

/* Sobre fundo escuro o turquesa profundo some — usar o turquesa claro */
.section--dark .eyebrow,
.cta .eyebrow,
.pagehead .eyebrow,
.hero .eyebrow { color: var(--accent-2); }

.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head p {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--muted);
}
.section--dark .sec-head p { color: #93a7b9; }

.lead {
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
}
.section--dark .lead { color: #a2b4c4; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  font-family: var(--f-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11, 127, 146, .38);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--dark:hover { background: var(--ink-3); transform: translateY(-2px); }
/* Em seção escura o botão escuro sumiria no fundo — clareia um degrau */
.section--dark .btn--dark,
.cta .btn--dark,
.pagehead .btn--dark {
  background: var(--ink-3);
  border-color: var(--line-dark);
}
.section--dark .btn--dark:hover,
.cta .btn--dark:hover,
.pagehead .btn--dark:hover { background: var(--steel); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* Botão "fantasma" sobre fundo escuro (hero, CTA final, cabeçalho de página,
   rodapé, painel de contato, 404): letra branca sobre uma chapa translúcida —
   sem a chapa o texto fica preto sobre preto e some. */
.section--dark .btn--ghost,
.hero .btn--ghost,
.cta .btn--ghost,
.pagehead .btn--ghost,
.footer .btn--ghost,
.contact-panel .btn--ghost,
.err .btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .5);
}
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.cta .btn--ghost:hover,
.pagehead .btn--ghost:hover,
.footer .btn--ghost:hover,
.contact-panel .btn--ghost:hover,
.err .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .26);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}
/* Empilhados, botoes de larguras diferentes criam um recorte irregular.
   No celular todos ocupam a linha inteira e ficam alinhados entre si. */
@media (max-width: 560px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .cta .btn-row { align-items: stretch; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: var(--t);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--steel);
  text-decoration: none;
  padding-block: .4rem;
  position: relative;
  transition: color var(--t);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header .btn { padding: .7rem 1.25rem; font-size: .88rem; }

.burger {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--t);
}
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1.25rem var(--gut) 1.75rem;
    margin: 0;
    display: none;
    /* em paisagem o menu nao cabia e ficava cortado, sem rolagem propria */
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; }
  /* alvo de toque confortavel (>= 48px) */
  .nav a { display: flex; align-items: center; min-height: 48px; padding: .75rem 0; font-size: 1.05rem; }
  .nav a::after { display: none; }
  .header__cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(10, 26, 43, .95) 0%, rgba(10, 26, 43, .86) 42%, rgba(10, 26, 43, .48) 100%),
    linear-gradient(to top, rgba(10, 26, 43, .9), transparent 45%);
}
.hero__inner {
  padding-block: clamp(4.5rem, 12vw, 9rem);
  max-width: 40rem;
}
@media (max-width: 760px) {
  .hero::after {
    background:
      linear-gradient(180deg, rgba(10, 26, 43, .92) 0%, rgba(10, 26, 43, .88) 55%, rgba(10, 26, 43, .94) 100%);
  }
}
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: normal;
  color: var(--accent-2);
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  line-height: 1.6;
  color: #bccbd8;
  max-width: 34rem;
}

/* Faixa de credenciais sob o hero */
.credbar {
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
}
.credbar ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.credbar li {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-right: 1px solid var(--line-dark);
}
.credbar li:last-child { border-right: 0; }
.credbar strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.credbar span {
  display: block;
  margin-top: .3rem;
  font-size: .84rem;
  color: #8398ac;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .credbar li { border-right: 0; border-bottom: 1px solid var(--line-dark); padding-right: 0; }
  .credbar li:last-child { border-bottom: 0; }
}

/* ---------- Página: cabeçalho interno ---------- */
.pagehead {
  background: var(--ink);
  color: #b3c3d2;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.pagehead::before {
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: 45%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(53, 207, 227, .13), transparent 68%);
  pointer-events: none;
}
.pagehead h1 { color: #fff; max-width: 22ch; }
.pagehead p {
  margin-top: 1.25rem;
  max-width: 44rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: #93a7b9;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .85rem;
  color: var(--muted-2);
  margin-bottom: 1.5rem;
}
.crumbs { align-items: center; }
.crumbs a { text-decoration: none; color: var(--muted-2); }
@media (max-width: 760px) {
  .crumbs a { display: inline-flex; align-items: center; min-height: 36px; }
  .crumbs { margin-bottom: 1rem; }
}
.crumbs a:hover { color: var(--accent-2); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Grades ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--top { align-items: start; }

/* ---------- Cartões ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--t);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c3d2e0;
}
.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.4, 0, .2, 1);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .6rem; }
.card__body p { font-size: .96rem; color: var(--muted); }
.card__tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: .85rem;
  padding: .3rem .7rem;
  font-family: var(--f-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: #d6f1f6;
  border-radius: 100px;
}
.card__list {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: .9rem;
  color: var(--muted);
}
.card__list li { padding-left: 1.15rem; position: relative; margin-bottom: .4rem; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* Cartão escuro (features) */
.feature {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: var(--t);
}
.feature:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.feature__num {
  font-family: var(--f-display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--accent);
  display: block;
  margin-bottom: .9rem;
}
.feature h3 { margin-bottom: .55rem; font-size: 1.12rem; }
.feature p { font-size: .95rem; color: var(--muted); }

.section--dark .feature {
  background: var(--ink-2);
  border-color: var(--line-dark);
}
.section--dark .feature:hover { border-color: var(--accent-2); background: var(--ink-3); }
.section--dark .feature p { color: #93a7b9; }
.section--dark .feature__num { color: var(--accent-2); }
.section--dark .checks li::before { background: var(--accent-2); }

/* ---------- Processo (do desenho à peça) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 0;
  counter-reset: step;
}
.process__step {
  position: relative;
  padding: 2rem 1.5rem 2rem 0;
  counter-increment: step;
}
.process__step::before {
  content: "0" counter(step);
  font-family: var(--f-display);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent-2);
  display: block;
  margin-bottom: .8rem;
}
.process__step::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 3px;
  background: var(--line-dark);
}
.process__step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
@media (max-width: 700px) {
  .process { gap: 0; }
  .process__step { padding: 1.75rem 0; }
}
.process__step p { font-size: .9rem; color: #8398ac; }
.process__step:hover::after { background: var(--accent-2); }
.process__step::after { transition: background var(--t); }

/* ---------- Logos de clientes ---------- */
.clients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.clients img {
  height: clamp(30px, 5vw, 44px);
  width: auto;
  opacity: .62;
  filter: grayscale(1);
  transition: var(--t);
}
.clients img:hover { opacity: 1; filter: grayscale(0); }
.clients--dark img { filter: grayscale(1) brightness(0) invert(1); opacity: .5; }
.clients--dark img:hover { opacity: .9; filter: grayscale(1) brightness(0) invert(1); }

/* ---------- Setores ---------- */
.sector {
  display: flex;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.sector:last-child { border-bottom: 0; }
.sector__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border-radius: var(--r);
  color: var(--accent);
}
.sector__icon svg { width: 22px; height: 22px; }
.sector h3 { font-size: 1.06rem; margin-bottom: .35rem; }
.sector p { font-size: .94rem; color: var(--muted); }

/* ---------- Figura com legenda ---------- */
.figure {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.figure img { width: 100%; height: auto; }
.figure figcaption {
  padding: 1rem 1.25rem;
  font-size: .87rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}
.figure figcaption strong { color: var(--ink); font-weight: 600; }
.section--dark .figure { border-color: var(--line-dark); background: var(--ink-2); }
.section--dark .figure figcaption {
  background: var(--ink-2);
  border-color: var(--line-dark);
  color: #93a7b9;
}
.section--dark .figure figcaption strong { color: #fff; }

/* ---------- Lista de checagem ---------- */
.checks { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.checks li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .95rem;
  font-size: 1rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- Portfólio ---------- */
.folio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
.folio__item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.folio__item--tall { aspect-ratio: 3 / 4; }
.folio__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .folio__item--wide { grid-column: span 1; aspect-ratio: 4 / 3; } }
.folio__item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 600ms cubic-bezier(.4, 0, .2, 1);
}
.folio__item:hover img { transform: scale(1.06); }
.folio__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 43, .92) 0%, rgba(10, 26, 43, .35) 45%, transparent 72%);
  z-index: -1;
}
.folio__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  color: #fff;
}
.folio__cap span {
  display: inline-block;
  font-family: var(--f-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .5rem;
}
.folio__cap h3 { color: #fff; font-size: 1.15rem; margin-bottom: .35rem; }
.folio__cap p { font-size: .9rem; color: #bccbd8; }

/* ---------- CTA ---------- */
.cta {
  background: var(--ink);
  color: #b3c3d2;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(53, 207, 227, .07) 0 12px, transparent 12px 34px);
  pointer-events: none;
}
.cta__inner { position: relative; text-align: center; max-width: 44rem; margin-inline: auto; }
.cta h2 { color: #fff; }
.cta p { margin-top: 1.1rem; color: #93a7b9; font-size: 1.1rem; }
.cta .btn-row { justify-content: center; }

/* ---------- Formulário ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label {
  font-family: var(--f-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.field label .opt { color: var(--muted-2); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 1rem;
  transition: var(--t);
}
/* Radio e checkbox nao sao campos de texto: nao herdam largura total nem
   o padding do campo — era isso que quebrava o seletor de canal de envio. */
.field input[type="radio"],
.field input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 127, 146, .18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.1rem; }
.form__note { font-size: .86rem; color: var(--muted); }

/* ---------- Bloco de contato ---------- */
.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--accent-2); margin-top: .05rem; }
.contact-item dt {
  font-family: var(--f-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: .25rem;
}
.contact-item dd {
  margin: 0;
  font-size: clamp(.98rem, 3.4vw, 1.05rem);
  color: #fff;
  overflow-wrap: anywhere;
}
.contact-item dd a { text-decoration: none; }
.contact-item dd a:hover { color: var(--accent-2); }
/* O e-mail e um token unico e longo: em telas estreitas quebrava no meio do
   dominio. So no celular ele recua um degrau — no desktop sobra espaco. */
@media (max-width: 520px) {
  .contact-item dd a[href^="mailto:"] { font-size: .9em; }
  .contact-item { gap: .8rem; }
}

/* ---------- Rodapé ---------- */
.footer {
  background: var(--ink);
  color: #8398ac;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); } }
.footer li { overflow-wrap: anywhere; }
.footer__logo { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .85; margin-bottom: 1.1rem; }
.footer h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .65rem; }
.footer a { text-decoration: none; transition: color var(--t); }
.footer a:hover { color: var(--accent-2); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: .85rem;
  color: #667a8c;
}
.footer__social { display: flex; gap: .75rem; }
@media (max-width: 560px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer li { margin-bottom: .2rem; }
  .footer li a { display: inline-flex; align-items: center; min-height: 40px; }
}
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  transition: var(--t);
}
.footer__social a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.footer__social svg { width: 17px; height: 17px; }

/* ---------- Botão flutuante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(37, 211, 102, .42);
  text-decoration: none;
  transition: var(--t);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@supports (padding: env(safe-area-inset-bottom)) {
  .wa-float { bottom: calc(clamp(1rem, 3vw, 1.75rem) + env(safe-area-inset-bottom)); }
}
/* espaco para o botao flutuante nao cobrir a ultima linha do rodape */
@media (max-width: 560px) { .footer__bottom { padding-bottom: 4.5rem; } }

/* ---------- Animação de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Utilitários ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Tabela de especificações / capacidade ---------- */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.section--dark .spec-wrap { border-color: var(--line-dark); background: var(--ink-2); }

.spec { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .96rem; }
.spec caption {
  text-align: left;
  padding: 1.15rem 1.35rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.section--dark .spec caption { color: #fff; border-color: var(--line-dark); }

.spec th, .spec td { padding: .9rem 1.35rem; text-align: left; vertical-align: top; }
.spec thead th {
  font-family: var(--f-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
}
.section--dark .spec thead th { border-color: var(--line-dark); }
.spec tbody tr + tr th, .spec tbody tr + tr td { border-top: 1px solid var(--line); }
.section--dark .spec tbody tr + tr th,
.section--dark .spec tbody tr + tr td { border-top-color: var(--line-dark); }
.spec tbody th { font-weight: 600; color: var(--ink); width: 42%; }
.section--dark .spec tbody th { color: #fff; }
.spec td { color: var(--muted); font-variant-numeric: tabular-nums; }
.section--dark .spec td { color: #93a7b9; }
.spec tbody tr:hover td, .spec tbody tr:hover th { background: var(--bg-2); }
.section--dark .spec tbody tr:hover td,
.section--dark .spec tbody tr:hover th { background: var(--ink-3); }

/* No celular a rolagem lateral escondia a coluna de valores.
   Entre 520 e 620px a tabela cabe inteira com celulas mais compactas. */
@media (max-width: 620px) {
  .spec { min-width: 0; font-size: .9rem; }
  .spec caption { padding: 1rem 1.1rem; font-size: 1rem; }
  .spec th, .spec td { padding: .75rem 1rem; }
  .spec tbody th { width: 52%; }
  .spec td, .spec tbody th { overflow-wrap: anywhere; }
}
/* Abaixo de 520px duas colunas produzem rotulos picados em tres linhas ao
   lado de um valor curto. Cada linha vira um bloco rotulo-sobre-valor:
   mesma informacao, alinhamento unico, sem rolagem lateral.
   Todas as tabelas .spec do site tem exatamente duas colunas. */
@media (max-width: 520px) {
  .spec, .spec caption, .spec tbody, .spec tbody tr, .spec tbody th, .spec tbody td { display: block; width: auto; }
  .spec thead { display: none; }
  .spec tbody tr { padding: .95rem 1.1rem; }
  .spec tbody tr + tr { border-top: 1px solid var(--line); }
  .section--dark .spec tbody tr + tr { border-top-color: var(--line-dark); }
  .spec tbody tr + tr th,
  .spec tbody tr + tr td { border-top: 0; }
  .spec tbody th {
    padding: 0 0 .2rem;
    font-family: var(--f-display);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
  }
  .section--dark .spec tbody th { color: var(--muted-2); }
  .spec tbody td {
    padding: 0;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--ink);
  }
  .section--dark .spec tbody td { color: #fff; }
  .spec tbody tr:hover th,
  .spec tbody tr:hover td { background: none; }
}

/* ---------- Números de destaque ---------- */
.bignums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.bignum {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: var(--ink-2);
}
.bignum strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-2);
  letter-spacing: -.02em;
}
.bignum span {
  display: block;
  margin-top: .6rem;
  font-size: .9rem;
  line-height: 1.4;
  color: #93a7b9;
}
