/* Tapeçaria Renova — estilos
   Direção: oficina de bairro. Azul-marinho e laranja da fachada,
   fundo de linho quente e a "costura" tracejada como detalhe de marca. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/figtree-latin.woff2') format('woff2');
}

:root {
  --navy: #180B51;
  --navy-2: #241667;
  --navy-3: #100639;
  --orange: #FF8100;
  --orange-soft: #FF9A33;
  --rust: #B04F00;
  --linen: #F7F3EC;
  --linen-2: #EFE8DC;
  --paper: #FFFFFF;
  --ink: #180B51;
  --ink-2: #4A4566;
  --ink-on-dark: #DAD5EE;
  --line: #E3DBCD;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 18px;
  --radius-lg: 24px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 76px;

  --stitch: 2px dashed var(--orange);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

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

a { color: var(--rust); }
a:hover { color: var(--navy); }

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.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;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-main { background: var(--orange); color: var(--navy); }
.btn-main:hover { background: var(--orange-soft); color: var(--navy); }

.btn-line { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-line:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }

.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}
.brand img { width: 52px; height: 52px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .06em;
}
.brand-sub { font-size: 11px; letter-spacing: .16em; color: var(--ink-2); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 10px 12px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--rust); background: var(--linen); }

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

@media (max-width: 420px) {
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 19px; }
  .site-header .btn-sm span { display: none; }
  .site-header .btn-sm { width: 44px; padding: 0; }
}

/* ---------- Rótulos e títulos de seção ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rust);
}
.eyebrow::before {
  content: '';
  width: 28px;
  border-top: var(--stitch);
}
.on-dark .eyebrow { color: var(--orange-soft); }

.section { padding-block: var(--section-y); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.section-head h2 { font-size: clamp(32px, 4.6vw, 48px); }
.section-head p { font-size: 18px; color: var(--ink-2); }

.on-dark { background: var(--navy); color: #fff; }
.on-dark p { color: var(--ink-on-dark); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media { position: relative; }
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--navy-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
/* costura interna sobre a foto */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: var(--stitch);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  left: -16px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: #fff;
  color: var(--navy);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(8, 3, 30, .35);
  text-decoration: none;
}
.hero-badge strong { font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.hero-badge span { font-size: 14px; color: var(--ink-2); }
.hero-badge:hover { color: var(--navy); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .hero-badge { left: 12px; bottom: 16px; }
}

/* ---------- Faixa de fatos ---------- */

.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts ul {
  list-style: none;
  margin: 0;
  padding-block: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.facts li { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: var(--stitch); }
.facts strong { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; color: var(--navy); }
.facts span { font-size: 15px; color: var(--ink-2); }

@media (max-width: 860px) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Serviços ---------- */

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

.service {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--linen-2); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service:hover .service-media img { transform: scale(1.04); }
.service-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.service h3 { font-size: 24px; font-weight: 700; }
.service p { color: var(--ink-2); }

.service-media--icon {
  display: grid;
  place-items: center;
  background: var(--navy);
  position: relative;
}
.service-media--icon::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: var(--stitch);
  border-radius: 10px;
  opacity: .6;
}
.service-media--icon svg { width: 34%; height: auto; }

.service--cta {
  justify-content: center;
  gap: 16px;
  padding: 32px;
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  position: relative;
}
.service--cta::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: var(--stitch);
  border-radius: 10px;
  pointer-events: none;
}
.service--cta h3 { font-size: 28px; font-weight: 800; }
.service--cta p { color: var(--ink-on-dark); font-size: 17px; }
.service--cta .btn { align-self: flex-start; position: relative; }

@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
}

/* ---------- Como funciona ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--navy-2);
  position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--orange);
}
.step h3 { font-size: 22px; font-weight: 700; color: #fff; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step { flex-direction: row; flex-wrap: wrap; column-gap: 18px; align-items: baseline; }
  .step::before { font-size: 32px; }
  .step h3 { flex: 1 1 0; }
  .step p { flex-basis: 100%; }
}

/* ---------- Trabalhos ---------- */

.work { background: var(--paper); }
.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.work-head .section-head { margin-bottom: 0; }

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }

.tile {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--linen-2);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(to top, rgba(16, 6, 57, .85), rgba(16, 6, 57, 0));
}

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile figcaption { font-size: 13px; padding: 28px 12px 10px; }
}

/* ---------- Sobre ---------- */

.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}
.about-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { display: flex; flex-direction: column; gap: 20px; }
.about-copy h2 { font-size: clamp(32px, 4.6vw, 48px); }
.about-copy p { font-size: 18px; color: var(--ink-2); }
.about-copy .btn { align-self: flex-start; }

@media (max-width: 860px) {
  .about .wrap { grid-template-columns: 1fr; }
  .about-photo { max-width: 520px; }
}

/* ---------- Contato ---------- */

.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.contact-copy { display: flex; flex-direction: column; gap: 22px; }
.contact-copy h2 { font-size: clamp(34px, 5vw, 52px); }
.contact-copy p { font-size: 18px; max-width: 480px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.contact-card {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: clamp(24px, 4vw, 36px);
  background: var(--navy-2);
  border-radius: 20px;
  border: var(--stitch);
}
.contact-card dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin-bottom: 4px;
}
.contact-card dd { margin: 0; font-size: 18px; line-height: 1.5; color: #fff; }
.contact-card a { color: #fff; text-decoration-color: rgba(255, 154, 51, .7); text-underline-offset: 3px; }
.contact-card a:hover { color: var(--orange-soft); }
.contact-card .muted { color: var(--ink-on-dark); font-size: 15px; }

@media (max-width: 860px) {
  .contact .wrap { grid-template-columns: 1fr; }
}

/* ---------- Rodapé ---------- */

.site-footer { background: var(--navy-3); color: #B7B0D9; font-size: 14px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px;
}
.site-footer .foot-brand { display: flex; align-items: center; gap: 10px; }
.site-footer img { width: 32px; height: 32px; border-radius: 6px; }

/* ---------- WhatsApp fixo no celular ---------- */

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(8, 3, 30, .35);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { color: #fff; background: #1EBE5A; }

@media (max-width: 860px) {
  .wa-float { display: inline-flex; }
  .site-footer { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
