/* ==========================================================================
   MG Epóxi & Polimento — Registro Geral
   Dark industrial ground per DESIGN.md (revised 2026-07-24 from the client
   flyer as pinned visual world). Cobalt committed at page scale, near-white
   type on graphite near-black. Faceted corner-clips echo the logo geometry.
   ========================================================================== */

:root {
  /* dark industrial surfaces */
  --bg: #0d1015;
  --bg-2: #12161c;
  --surface: #161b22;
  --surface-2: #1c232d;
  --line: rgba(224, 231, 240, 0.10);
  --line-2: rgba(224, 231, 240, 0.17);

  /* type */
  --text: #eef2f7;
  --text-dim: #b6c0ce;
  --text-mute: #96a0af;

  /* brand blues + silver */
  --blue: #1e4fd6;
  --blue-deep: #0a2464;
  --blue-bright: #6c9cff;
  --blue-vivid: #2f6bff;
  --blue-glow: #5ad1ff;
  --steel-soft: #d7dce2;

  --font-display: "Spectral", Georgia, serif;
  --font-brand: "Marcellus SC", "Spectral", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-body: "Archivo", system-ui, sans-serif;

  --wrap-w: 1180px;
  --ease-pour: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  /* graphite ground with a top cobalt glow + faint machined grid */
  background-image:
    radial-gradient(120% 70% at 82% -8%, rgba(30, 79, 214, 0.18), transparent 55%),
    radial-gradient(90% 60% at 0% 0%, rgba(12, 30, 74, 0.35), transparent 60%),
    linear-gradient(180deg, #0e1218, var(--bg) 40%);
  background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; color: var(--text); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.wrap {
  max-width: var(--wrap-w);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 16, 21, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand-mark { display: inline-flex; padding-right: 14px; margin-right: 2px; border-right: 1px solid var(--line-2); }
.brand-mark img {
  display: block;
  height: 34px;
  width: auto;
  filter: drop-shadow(0 3px 9px rgba(0, 0, 0, 0.55));
}

.brand-word {
  font-family: var(--font-brand);
  font-size: 1.12rem;
  letter-spacing: 0.11em;
  color: var(--text);
  line-height: 1;
}
.brand-word strong { color: var(--blue-bright); font-weight: 400; }
.brand-word em { font-style: normal; color: var(--blue-bright); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-pour), color 0.2s var(--ease-pour);
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--text); border-color: var(--blue-bright); }

.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* ==========================================================================
   CTA — the "stamp" (embossed seal, primary WhatsApp action)
   ========================================================================== */

.cta-stamp {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue-vivid), var(--blue) 55%, var(--blue-deep));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 0 14px 30px -14px rgba(30, 79, 214, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.3s var(--ease-pour), box-shadow 0.3s var(--ease-pour);
  overflow: hidden;
  isolation: isolate;
}

.cta-stamp-ring {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.55) 42%, rgba(255,255,255,0.05) 60%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-pour);
  z-index: 1;
}
.cta-stamp span { position: relative; z-index: 2; }

.cta-stamp:hover, .cta-stamp:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -14px rgba(30, 79, 214, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.cta-stamp:hover .cta-stamp-ring, .cta-stamp:focus-visible .cta-stamp-ring { transform: translateX(120%); }

.hero-actions .cta-stamp { animation: stamp-pulse 3.2s ease-in-out infinite; }
@keyframes stamp-pulse {
  0%, 100% { box-shadow: 0 14px 30px -14px rgba(30, 79, 214, 0.8), inset 0 1px 0 rgba(255,255,255,0.22), 0 0 0 0 rgba(90, 209, 255, 0.35); }
  50% { box-shadow: 0 14px 30px -14px rgba(30, 79, 214, 0.8), inset 0 1px 0 rgba(255,255,255,0.22), 0 0 0 12px rgba(90, 209, 255, 0); }
}

.cta-stamp--small { padding: 10px 18px; font-size: 0.85rem; }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.cta-ghost:hover { color: var(--blue-bright); border-color: var(--blue-bright); }

/* ==========================================================================
   Hero — ledger cover
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: saturate(1.3) contrast(1.12) brightness(0.98);
}
.hero-media-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,20,48,0.78) 0%, rgba(8,16,34,0.55) 38%, rgba(13,16,21,0.99) 96%),
    linear-gradient(100deg, rgba(6,16,42,0.6) 0%, transparent 62%);
}

.hero-watermark {
  position: absolute;
  top: -12%;
  right: -6%;
  width: 62%;
  max-width: 780px;
  opacity: 0.18;
  mix-blend-mode: screen;
  filter: saturate(1.3);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 160px;
  padding-bottom: 92px;
  color: #fff;
}

.ledger-dateline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-bright);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.ledger-dateline .dot { color: var(--text-mute); }
.ledger-dateline span:not(.dot) { white-space: nowrap; }

.hero-thesis {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  color: #fff;
  max-width: 16ch;
  margin-bottom: 26px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.hero-thesis em { font-style: italic; font-weight: 500; color: var(--steel-soft); }

.hero-sub {
  max-width: 58ch;
  font-size: 1.08rem;
  color: rgba(238,241,244,0.86);
  margin-bottom: 40px;
}

.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-actions .cta-ghost { color: rgba(238,241,244,0.88); border-color: rgba(238,241,244,0.34); }
.hero-actions .cta-ghost:hover { color: var(--blue-bright); border-color: var(--blue-bright); }

/* ==========================================================================
   Intro strip
   ========================================================================== */

.intro-strip { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(30,79,214,0.05), transparent 70%); }
.intro-strip-inner {
  padding: 84px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.intro-strip-mark { display: flex; flex-direction: column; gap: 26px; align-items: center; }
.intro-strip-mark img {
  width: 196px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
}
.intro-strip-lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  line-height: 1.32;
  color: var(--text);
  max-width: 24ch;
}
.intro-strip-lead strong { color: var(--blue-bright); font-weight: 700; }

/* ==========================================================================
   Register — specimen grid
   ========================================================================== */

.register { padding: 100px 0 92px; position: relative; }

.register-head { max-width: 66ch; margin-bottom: 56px; }
.section-tag {
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before { content: ""; width: 26px; height: 2px; background: var(--blue); }
.register-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.register-lead { color: var(--text-dim); font-size: 1.02rem; }

.specimen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.specimen-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease-pour);
}
.specimen-card:hover { background: var(--surface-2); }

.specimen-plate {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0c1016;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.specimen-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.1) brightness(0.94);
  transition: transform 0.6s var(--ease-pour), filter 0.6s var(--ease-pour);
}
.specimen-card:hover .specimen-plate img { transform: scale(1.05); filter: saturate(1.4) contrast(1.12) brightness(1.02); }

.specimen-no {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 14, 20, 0.82);
  border: 1px solid var(--line-2);
  color: var(--blue-bright);
  font-size: 0.78rem;
  padding: 5px 10px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  backdrop-filter: blur(2px);
}

/* CSS-authored material swatches (no photo yet — honest illustrative texture). */
.specimen-plate--swatch { background-size: cover; background-position: center; position: relative; }
.specimen-plate--swatch::after {
  content: "AMOSTRA";
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(238,241,244,0.6);
}

.specimen-plate--wood {
  background-image:
    repeating-linear-gradient(90deg, rgba(238,241,244,0.10) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(238,241,244,0.05) 0 2px, transparent 2px 21px),
    repeating-linear-gradient(90deg, rgba(10,14,20,0.18) 0 3px, transparent 3px 46px),
    linear-gradient(115deg, rgba(238,241,244,0.14), transparent 40%),
    linear-gradient(100deg, #3a4552, #232a33 45%, #4a5563 78%, #262e38);
}

.specimen-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.specimen-body h3 { font-size: 1.2rem; }

.specimen-app { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 4px 9px;
}
.chip--accent { color: var(--blue-bright); border-color: rgba(108, 156, 255, 0.5); background: rgba(30, 79, 214, 0.14); }

.specimen-index { display: flex; gap: 18px; }
.specimen-index > div { display: flex; align-items: center; gap: 8px; }
.specimen-index dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-mute);
  text-transform: uppercase;
}
.index-bar {
  --v: 3;
  position: relative;
  display: inline-block;
  width: 46px;
  height: 6px;
  border-radius: 3px;
  background: rgba(224, 231, 240, 0.12);
  overflow: hidden;
}
.index-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), var(--blue-glow));
  box-shadow: 0 0 10px rgba(90, 209, 255, 0.5);
  transition: transform 0.9s var(--ease-pour) 0.15s;
}
.specimen-card.is-revealed .index-bar::after { transform: scaleX(calc(var(--v) / 5)); }

.specimen-desc { color: var(--text-dim); font-size: 0.92rem; margin-top: auto; }

/* ==========================================================================
   Process
   ========================================================================== */

.process {
  padding: 92px 0;
  position: relative;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(30, 79, 214, 0.14), transparent 55%),
    linear-gradient(180deg, #0a0d13, #0c1017);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.process-head { max-width: 60ch; margin-bottom: 52px; }
.process .section-tag { color: var(--blue-bright); }
.process-head h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.5rem); }

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.process-list li {
  padding: 28px 22px 0;
  border-left: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process-list li:last-child { border-right: 1px solid var(--line-2); }
.process-no { color: var(--blue-glow); font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.process-list h3 { color: #fff; font-size: 1.08rem; font-family: var(--font-body); font-weight: 600; }
.process-list p { color: var(--text-dim); font-size: 0.92rem; }

/* ==========================================================================
   Differentials — guarantee badges (flyer's feature row)
   ========================================================================== */

.annotations {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}
.annotation-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.annotation-list > div {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.3s var(--ease-pour), border-color 0.3s var(--ease-pour);
}
.annotation-list > div:hover { transform: translateY(-3px); border-color: rgba(108, 156, 255, 0.4); }
.annotation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--blue-bright);
  background: rgba(30, 79, 214, 0.16);
  border: 1px solid rgba(108, 156, 255, 0.35);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.annotation-icon svg { width: 24px; height: 24px; }
.annotation-list dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--text);
  text-transform: uppercase;
}
.annotation-list dd { color: var(--text-dim); font-size: 0.94rem; margin: 0; }

/* ==========================================================================
   Contact — cobalt panel (flyer signature)
   ========================================================================== */

.contact { padding: 100px 0 92px; }
.contact-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: stretch;
}
.contact-lead { align-self: center; }
.contact-lead h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin: 16px 0 18px; }
.contact-lead p { color: var(--text-dim); max-width: 46ch; }

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 12px 30px 22px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(90, 209, 255, 0.16), transparent 55%),
    linear-gradient(140deg, var(--blue) 0%, #163fb0 45%, var(--blue-deep) 100%);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  box-shadow: 0 30px 60px -24px rgba(10, 36, 100, 0.85);
}
.contact-card::before {
  content: "TRANSFORME SEU PISO";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  padding: 18px 0 6px;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.25s var(--ease-pour);
}
.contact-row:last-child { border-bottom: none; }
.contact-row:hover, .contact-row:focus-visible { transform: translateX(8px); }
.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  text-transform: uppercase;
}
.contact-label svg { width: 18px; height: 18px; flex: none; }
.contact-value { font-family: var(--font-display); font-size: 1.24rem; font-weight: 600; color: #fff; }
/* Endereço ocupa duas linhas: escala menor e alinhamento à direita para
   não competir com os telefones nem estourar a largura do cartão. */
.contact-row--address { align-items: flex-start; }
.contact-row--address .contact-label { padding-top: 3px; }
.contact-row--address .contact-value {
  font-size: 1rem;
  line-height: 1.35;
  text-align: right;
  text-wrap: balance;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-mute);
  font-size: 0.85rem;
}
/* Mesma assinatura tipográfica do cabeçalho (Marcellus SC), só que em escala menor. */
.brand-word--footer {
  color: var(--text-dim);
  font-size: 0.95rem;
  letter-spacing: 0.11em;
}
.brand-word--footer strong { color: var(--blue-bright); font-weight: 400; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .specimen-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list li:nth-child(2) { border-right: 1px solid var(--line-2); }
  .annotation-list { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-inner .cta-stamp--small { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; border-radius: 2px; }

  .mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a { padding: 16px 28px; border-top: 1px solid var(--line); color: var(--text-dim); }

  .hero-content { padding-top: 120px; }
  .ledger-dateline { flex-wrap: wrap; row-gap: 4px; }
  .specimen-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; border-top: none; }
  .process-list li { border-left: none; padding-left: 0; padding-top: 22px; border-top: 1px solid var(--line-2); }
  .process-list li:last-child { border-right: none; }
  .annotation-list { grid-template-columns: 1fr; }

  /* No mobile o endereço empilha sob o rótulo em vez de disputar a linha. */
  .contact-row--address { flex-direction: column; gap: 8px; }
  .contact-row--address .contact-value { text-align: left; }
}
