/* ============================================================
   DSM Têxtil — estilos do site
   Paleta:
     tinta       #2b2724   fundo        #fdfcfb
     amarelo     #F1B434   amarelo hover #e0a01f
     areia       #FBEED2   argila       #C6A992
     superfícies #f9f6f2  #f4f0ec  #f0ebe6
     linhas      #eee9e4  #ddd5cd  #e4dcd3  #e6cd93
   ============================================================ */

:root {
  --ink: #2b2724;
  --bg: #fdfcfb;
  --accent: #F1B434;
  --accent-dark: #e0a01f;
  --accent-text: #8f6a12;
  --sand: #FBEED2;
  --clay: #C6A992;
  --surface-1: #f9f6f2;
  --surface-2: #f4f0ec;
  --surface-3: #f0ebe6;
  --line: #eee9e4;
  --line-2: #ddd5cd;
  --line-3: #e4dcd3;
  --line-sand: #e6cd93;
  --text: #625b55;
  --text-2: #6f6862;
  --text-3: #7a736c;
  --text-4: #857d75;
  --text-5: #4d4741;

  --pad-x: clamp(20px, 5vw, 36px);
  --gap-col: clamp(40px, 6vw, 80px);
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; }
img { display: block; max-width: 100%; }

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  font-size: 13px;
}
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 252, 251, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px 28px;
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 40px; height: 40px; }
.brand-type { height: 17px; width: auto; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.nav a { color: var(--text-2); transition: color .2s ease; }
.nav a:hover { color: var(--ink); }

.nav-contato {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: border-color .2s ease;
}
.nav-contato:hover { border-color: var(--ink); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

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

.btn {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  border: 1px solid var(--line-2);
  font-weight: 500;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- Tipografia ---------------- */

.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 22px;
}

h1, h2 { font-weight: 400; margin: 0; text-wrap: pretty; }
h1 {
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -2.4px;
  margin-bottom: 32px;
}
h2 {
  font-size: clamp(27px, 3.2vw, 44px);
  line-height: 1.14;
  letter-spacing: -1.4px;
}
strong, .em { font-weight: 600; }

.underline {
  font-weight: 600;
  border-bottom: 6px solid var(--accent);
  padding-bottom: 2px;
}

.lead {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text);
  font-weight: 300;
  text-wrap: pretty;
  margin: 0 0 22px;
}
.lead-lg { font-size: 18.5px; line-height: 1.7; }

/* ---------------- Grades e mídia ---------------- */

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--gap-col);
  align-items: center;
}
.two-col-start { align-items: start; }

.media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  min-width: 0;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-4 { aspect-ratio: 3 / 4; }

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

.hero {
  align-items: start;
  padding-top: clamp(48px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 96px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
.hero-media { position: relative; min-width: 0; }
.hero-media .blob {
  position: absolute;
  top: -24px;
  right: -24px;
  width: clamp(110px, 22vw, 190px);
  height: clamp(110px, 22vw, 190px);
  border-radius: 999px;
  background: var(--sand);
  z-index: 0;
}
.hero-media .media { position: relative; z-index: 1; }

/* ---------------- Números ---------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}
.stats > div { text-align: center; }
.stat-num { font-size: clamp(34px, 4vw, 42px); font-weight: 400; letter-spacing: -1.6px; }
.stat-label {
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 8px;
}

/* ---------------- Seções ---------------- */

.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.section-tight { padding-top: 0; padding-bottom: clamp(64px, 9vw, 110px); }
.section-plain { padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }
.band-1 { background: var(--surface-1); }
.band-2 { background: var(--surface-2); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
  margin-top: 22px;
}
.pillar-rule { width: 30px; height: 2px; margin-bottom: 18px; }
.pillar-rule.accent { background: var(--accent); }
.pillar-rule.clay { background: var(--clay); }
.pillar h3 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.pillar p, .note { font-size: 14.5px; line-height: 1.65; color: var(--text-3); font-weight: 300; margin: 0; }

/* ---------------- Artigos ---------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
  margin-bottom: clamp(40px, 6vw, 60px);
}
.section-head h2 { max-width: 600px; }
.section-head > p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  max-width: 360px;
  margin: 0 0 6px auto;
  font-weight: 300;
  text-wrap: pretty;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
}
.card { padding: clamp(26px, 4vw, 40px); min-width: 0; }
.card-basicos { background: var(--bg); }
.card-diferenciados { background: var(--sand); }
.card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dot { width: 9px; height: 9px; border-radius: 999px; flex: none; }
.dot.clay { background: var(--clay); }
.dot.accent { background: var(--accent); }
.card h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.3px; margin: 0; }
.card p { font-size: 14.5px; line-height: 1.65; margin: 0 0 28px; font-weight: 300; color: var(--text-3); }
.card-diferenciados p { color: #7a6a4c; }

.tags { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0; padding: 0; }
.tags li {
  border: 1px solid var(--line-3);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-5);
}
.card-diferenciados .tags li { border-color: var(--line-sand); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  margin-top: 24px;
}
.gallery .media { background: var(--surface-3); }

/* ---------------- Estamparia ---------------- */

.list-rows { display: grid; margin-top: 18px; }
.row {
  display: flex;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row-num { font-size: 12.5px; letter-spacing: 1.2px; color: var(--text-4); padding-top: 3px; flex: none; }
.row:last-child .row-num { color: var(--accent-text); }
.row h3 { font-size: 16px; font-weight: 500; margin: 0 0 8px; }
.row p { font-size: 14.5px; line-height: 1.65; color: var(--text-3); font-weight: 300; margin: 0; }

/* ---------------- Como trabalhamos ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 36px;
}
.step { border-top: 1px solid var(--line-2); padding-top: 22px; min-width: 0; }
.step:last-child { border-top-color: var(--accent); }
.step-num { font-size: 12.5px; letter-spacing: 1.2px; color: #7d756c; margin-bottom: 14px; }
.step:last-child .step-num { color: var(--accent-text); }
.step h3 { font-size: 16px; font-weight: 500; margin: 0 0 10px; }
.step p { font-size: 14.5px; line-height: 1.65; color: var(--text-2); font-weight: 300; margin: 0; }

.section-intro { max-width: 560px; margin: 0 0 64px; }
.head-max { max-width: 680px; margin-bottom: 24px; }

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

.contato h2 {
  font-size: clamp(29px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  margin-bottom: 26px;
}
.contato .lead { max-width: 470px; margin-bottom: 42px; }

.info { display: grid; min-width: 0; }
.info-item { border-top: 1px solid var(--line); padding: 22px 0; }
.info-item:last-child { border-bottom: 1px solid var(--line); }
.info-label {
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 10px;
}
.info-value { font-size: clamp(16px, 2.2vw, 19px); font-weight: 400; word-break: break-word; }
.info-value a { transition: color .2s ease; }
.info-value a:hover { color: var(--accent-text); }

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

.site-footer { background: var(--surface-1); }
.footer-inner {
  padding-top: clamp(32px, 6vw, 48px);
  padding-bottom: clamp(32px, 6vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 300;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand div { line-height: 1.7; }
.footer-name { color: var(--ink); font-weight: 500; }

/* ============================================================
   Breakpoints
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }

  .nav-toggle { display: block; }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 6px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a {
    width: 100%;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
  }
  .nav-contato {
    border-bottom: none;
    border-top: 1px solid var(--line);
    padding-bottom: 14px;
    color: var(--accent-text);
  }
  .nav-contato:hover { border-color: var(--line); }

  .header-inner { flex-wrap: wrap; gap: 0 16px; }
  .brand { gap: 11px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-type { height: 14px; }

  .section-head > p { margin-left: 0; max-width: 100%; }

  /* quando as colunas empilham, as fotos verticais não podem tomar a tela toda */
  .hero-media,
  #empresa .media,
  #estamparia .media { max-width: 460px; }
}

/* Mobile */
@media (max-width: 640px) {
  h1 { letter-spacing: -1.4px; }
  h2 { letter-spacing: -0.8px; }
  .contato h2 { letter-spacing: -1px; }

  .lead-lg { font-size: 17px; }
  .lead { font-size: 16.5px; }

  .btn { padding: 15px 24px; }
  .btn-row .btn { flex: 1 1 auto; text-align: center; }

  .hero-media .blob { top: -14px; right: -14px; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery .media:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

  .stats { gap: 26px; padding: 34px 0; }
  .pillars { gap: 26px; }
  .steps { gap: 28px; }
}

/* Impressão */
@media print {
  .site-header, .btn-row { display: none; }
  body { background: #fff; }
}
