/* Manual — Sociedade de Artigos Gráficos Lda
   Palette: ink navy / brand blue / paper white / process-ink chip accents */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
}

:root {
  --ink: #0b2545;
  --blue: #164b9e;
  --blue-deep: #0e3570;
  --paper: #fafbfc;
  --white: #ffffff;
  --line: #d7dee8;
  --muted: #52607a;
  --gold: #c9971f;       /* hot-stamp gold — the single sharp accent */
  --cyan: #0aa6c9;       /* process ink chips */
  --magenta: #d3306e;
  --mono: Consolas, "SF Mono", Menlo, monospace;
  --measure: 62ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

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

.wrap { max-width: 85rem; margin-inline: auto; padding-inline: clamp(1.25rem, 3vw, 2.5rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3 { font-stretch: 112%; letter-spacing: -0.015em; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 7.5vw, 5.2rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 750; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; margin-top: 1.4em; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-block;
  margin-bottom: 1.4rem;
}
/* crop-mark corners — the print-trade cue */
.crop {
  position: relative;
  padding: .45rem .8rem;
}
.crop::before, .crop::after {
  content: ""; position: absolute; width: .65rem; height: .65rem;
}
.crop::before { top: 0; left: 0; border-top: 2px solid currentColor; border-left: 2px solid currentColor; }
.crop::after { bottom: 0; right: 0; border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; }
.eyebrow.light { color: #9db8e0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .1em;
  text-decoration: none;
  padding: .7rem 1.3rem;
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-lg { padding: .9rem 1.8rem; font-size: .88rem; }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-accent { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.btn-accent:hover { background: #b3860f; border-color: #b3860f; }

/* ---------- 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: 1rem; min-height: 4.25rem;
}
.wordmark { text-decoration: none; line-height: 0; }
.wordmark-logo { height: 44px; width: auto; }
.nav-menu {
  display: flex; align-items: center; gap: 1.4rem; list-style: none;
}
.nav-menu a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
}
.nav-menu a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; }

.lang-toggle {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .05em;
  background: none; border: 1px solid var(--line); padding: .4rem .6rem;
  cursor: pointer; color: var(--muted);
}
.lang-toggle .lang-pt { color: var(--blue); font-weight: 700; }
.lang-toggle[aria-pressed="true"] .lang-pt { color: var(--muted); font-weight: 400; }
.lang-toggle[aria-pressed="true"] .lang-en { color: var(--blue); font-weight: 700; }

/* ---------- hero ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 3rem; align-items: center;
  padding-block: clamp(3.5rem, 9vh, 7rem);
}
.hero-lead { max-width: 46ch; margin: 1.5rem 0 2.2rem; font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-panel {
  background: var(--blue);
  padding: 2.2rem 1.8rem 1.4rem;
  position: relative;
}
/* registration-mark accent */
.reg-mark {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 22px; height: 22px;
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 50%;
}
.reg-mark::before, .reg-mark::after {
  content: ""; position: absolute; background: rgba(255,255,255,.75);
}
.reg-mark::before { left: 50%; top: -5px; bottom: -5px; width: 1.5px; transform: translateX(-50%); }
.reg-mark::after { top: 50%; left: -5px; right: -5px; height: 1.5px; transform: translateY(-50%); }

.chip-stack { list-style: none; display: grid; gap: .7rem; }
.chip {
  display: flex; align-items: center; gap: .7rem;
  background: var(--white); padding: .7rem .9rem;
  font-size: .92rem; font-weight: 600;
}
.chip-swatch { width: 1.5rem; height: 1.5rem; flex: none; }
.chip-code { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .08em; }
.chip-enc .chip-swatch { background: var(--blue-deep); }
.chip-pol .chip-swatch { background: var(--cyan); }
.chip-hol .chip-swatch { background: var(--gold); }
.chip-tin .chip-swatch { background: var(--magenta); }
.panel-foot {
  margin-top: 1.6rem; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85);
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vh, 6.5rem); }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-lead { max-width: var(--measure); color: var(--muted); margin: 1rem 0 2.5rem; }

.section-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem; align-items: start; margin-top: .5rem;
}
.section-copy p { max-width: var(--measure); margin-top: 1em; }
.section-figure img { border: 1px solid var(--line); }
.section-figure figcaption, .form-status {
  font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-top: .6rem;
}

.fact-row {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.fact-row dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.fact-row dd { font-size: 2rem; font-weight: 800; font-stretch: 112%; color: var(--blue); }

/* spec sheet */
.spec-sheet {
  margin-top: 3.5rem; border: 1px solid var(--line); background: var(--white);
  padding: 2rem clamp(1.2rem, 4vw, 2.5rem);
}
.spec-title { font-size: 1.15rem; font-weight: 700; max-width: 56ch; }
.spec-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; margin-top: 1.8rem; }
.spec-label {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue);
  border-bottom: 2px solid var(--blue); padding-bottom: .4rem; margin-bottom: .9rem;
}
.spec-cols ul { list-style: none; }
.spec-cols li { padding: .35rem 0 .35rem 1.1rem; position: relative; border-bottom: 1px dotted var(--line); }
.spec-cols li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- products ---------- */
.product { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.product-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.chip.inline { padding: .45rem .7rem; border: 1px solid var(--line); }
.product-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem; align-items: start;
}
.product-copy p, .product-copy ul { max-width: var(--measure); margin-top: 1em; }
.product-copy ul { padding-left: 1.3rem; }
.product-figure { position: sticky; top: 6rem; }
.product-figure img { border: 1px solid var(--line); }

/* material panel (Poliéster) */
.material-panel {
  border: 1px solid var(--line); background: var(--paper);
  padding: 1.8rem; position: sticky; top: 6rem;
}
.material-title, .material-note {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.material-swatches { list-style: none; display: grid; gap: .8rem; margin-block: 1.2rem; font-weight: 600; }
.material-swatches li { display: flex; align-items: center; gap: .8rem; }
.sw { width: 2.6rem; height: 2.6rem; flex: none; border: 1px solid var(--line); }
.sw-tafeta { background: repeating-linear-gradient(45deg, #dfe6f0 0 3px, #c9d4e4 3px 6px); }
.sw-acetato { background: linear-gradient(135deg, #eef3f8 40%, #cfdcee); }
.sw-cetim { background: linear-gradient(120deg, #9db8e0, #e4ecf7 55%, #7d9ecf); }
.sw-poliester { background: linear-gradient(135deg, var(--cyan), #0e7fa0); }

/* ---------- marcas ---------- */
.brand-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.brand-grid li {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.6rem 1.2rem;
  font-weight: 700; font-stretch: 108%; letter-spacing: .02em;
  font-size: 1.02rem; color: var(--ink);
  position: relative;
  transition: color .15s;
}
.brand-grid li::after {
  content: ""; position: absolute; left: 1.2rem; bottom: 1rem;
  width: 1.4rem; height: 3px; background: var(--line); transition: background .15s, width .15s;
}
.brand-grid li:hover { color: var(--blue); }
.brand-grid li:hover::after { background: var(--gold); width: 2.2rem; }

/* ---------- contacto ---------- */
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2 { color: #fff; }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 3.5rem; align-items: start;
}
address { font-style: normal; margin-top: 1.8rem; }
.contact-item { margin-bottom: 1.5rem; }
.contact-item a { color: #fff; text-decoration-color: var(--gold); }
.contact-item small { color: #9db8e0; }
.contact-label {
  display: block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: #9db8e0; margin-bottom: .25rem;
}

.contact-form { background: var(--white); color: var(--ink); padding: clamp(1.4rem, 4vw, 2.4rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block; font-family: var(--mono); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .35rem; color: var(--muted);
}
.form-field input, .form-field textarea {
  width: 100%; font: inherit; padding: .65rem .8rem;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.form-check { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .9rem; font-size: .92rem; }
.form-check input { width: 1rem; height: 1rem; accent-color: var(--blue); flex: none; }
.form-check a { color: var(--blue); }
.contact-form .btn { margin-top: .6rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-deep); color: #fff; padding-block: 1.6rem; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap;
}
.footer-copy { font-size: .88rem; }
.footer-links { list-style: none; display: flex; gap: 1.5rem; }
.footer-links a { color: #cdd9ee; font-size: .88rem; }
.livro-badge img { filter: invert(1); height: 34px; width: auto; }

/* ---------- responsive ---------- */
@media (max-width: 56rem) {
  .hero-grid, .section-grid, .product-grid, .contact-grid, .spec-cols, .form-row {
    grid-template-columns: 1fr;
  }
  .hero-grid { gap: 2.2rem; }
  .product-figure, .material-panel { position: static; }
  .product-figure { max-width: 28rem; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 1px solid var(--line); padding: .6rem .55rem; cursor: pointer;
  }
  .nav-toggle span { width: 1.3rem; height: 2px; background: var(--ink); }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .6rem 1.25rem 1.2rem;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu li:first-child { border-top: 0; }
  .nav-menu a:not(.btn) { display: block; padding: .85rem 0; }
  .nav-cta-item, .nav-menu li:last-child { padding-block: .8rem; border-top: 1px solid var(--line); }
  .site-nav { position: static; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}
