/* ============================================================
   RMV — components.css  (reusable section components)
   ============================================================ */

/* ---- Decorative corner ticks (industrial framing) ---- */
.framed { position: relative; }
.framed::before, .framed::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border: 2px solid var(--accent); opacity: .8;
}
.framed::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.framed::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---- Breadcrumbs ---- */
.crumbs { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--accent); }

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero { position: relative; padding-block: clamp(56px, 9vw, 116px) clamp(44px, 6vw, 72px);
  overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.page-hero__media { position: absolute; inset: 0; z-index: 0; opacity: .26; }
.page-hero__media image-slot { width: 100%; height: 100%; }
.page-hero::after { content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, color-mix(in srgb,var(--bg) 30%, transparent), var(--bg-2) 88%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { margin-top: 18px; }
.page-hero .lede { margin-top: 18px; }

/* ============================================================
   STAT ROW
   ============================================================ */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border); }
.stat { background: var(--bg-2); padding: 30px 26px; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 4.5vw, 60px);
  line-height: 1; color: var(--text); display: flex; align-items: baseline; gap: 4px; }
.stat__num b { color: var(--accent); font-weight: 800; }
.stat__label { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-mute); line-height: 1.5; }
@media (max-width: 760px){ .stat-row { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s, box-shadow .25s; }
.svc-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-2); }
.svc-card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--bg-3); }
.svc-card__media image-slot { width: 100%; height: 100%; }
.svc-card__media::after { content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb,var(--surface) 88%, transparent)); }
.svc-card__idx { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .1em; color: var(--accent); background: rgba(0,0,0,.5);
  padding: 5px 9px; border-radius: var(--radius); }
.svc-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc-card__body h3 { font-size: clamp(21px, 2vw, 27px); }
.svc-card__body p { color: var(--text-dim); font-size: 15.5px; margin: 0; flex: 1; }
.section--paper .svc-card { background: var(--paper-surface); border-color: var(--paper-border); color: var(--paper-text); }
.section--paper .svc-card__body p { color: var(--paper-dim); }
.section--paper .svc-card__media::after { background: linear-gradient(180deg, transparent 40%, color-mix(in srgb,var(--paper-surface) 88%, transparent)); }
@media (max-width: 900px){ .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .svc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   STOCK CARDS (marketplace)
   ============================================================ */
.stock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stock-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), border-color .22s, box-shadow .22s; }
.stock-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.stock-card__media { position: relative; aspect-ratio: 4/3; background: var(--bg-3); overflow: hidden; }
.stock-card__media image-slot { width: 100%; height: 100%; }
.stock-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.stock-card__chip { background: rgba(8,9,11,.78); backdrop-filter: blur(6px); padding: 7px 11px; border-radius: var(--radius); }
.stock-card__fav { width: 36px; height: 36px; border-radius: var(--radius); background: rgba(8,9,11,.7);
  border: 1px solid rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; }
.stock-card__fav svg { width: 18px; height: 18px; }
.stock-card__fav.is-fav { color: var(--orange); border-color: var(--orange); }
.stock-card__gallery-dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2;
  display: flex; gap: 5px; justify-content: center; }
.stock-card__gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.stock-card__gallery-dots i.on { background: var(--accent); width: 16px; border-radius: 3px; }
.stock-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.stock-card__title { display: flex; flex-direction: column; gap: 4px; }
.stock-card__title h3 { font-size: 23px; }
.stock-card__title .sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  color: var(--text-mute); text-transform: uppercase; }
.stock-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stock-specs div { background: var(--surface); padding: 9px 11px; }
.stock-specs dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.stock-specs dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; color: var(--text); }
.stock-card__price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; }
.stock-card__price .val { font-family: var(--font-display); font-weight: 800; font-size: 27px; color: var(--text); }
.stock-card__price .val small { font-size: 14px; color: var(--text-mute); font-weight: 600; }
.stock-card__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.section--paper .stock-card { background: var(--paper-surface); border-color: var(--paper-border); color: var(--paper-text); }
.section--paper .stock-specs, .section--paper .stock-specs div { background: var(--paper-surface); }
.section--paper .stock-specs { background: var(--paper-border); }
.section--paper .stock-specs dd, .section--paper .stock-card__title h3, .section--paper .stock-card__price .val { color: var(--paper-text); }
@media (max-width: 980px){ .stock-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .stock-grid { grid-template-columns: 1fr; } }

/* ---- Filter bar ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 14px; }
.filter-search input { flex: 1; background: transparent; border: 0; color: var(--text); font-family: var(--font-body);
  font-size: 15px; padding: 13px 0; outline: none; }
.filter-search svg { width: 18px; height: 18px; color: var(--text-mute); flex: none; }
.chip-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-filter button { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: .03em;
  font-size: 14px; padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-dim); transition: all .18s; }
.chip-filter button:hover { color: var(--text); border-color: var(--border-strong); }
.chip-filter button.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.filter-select { font-family: var(--font-body); font-size: 15px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.section--paper .filter-search, .section--paper .chip-filter button, .section--paper .filter-select { background: var(--paper-surface); border-color: var(--paper-border); color: var(--paper-text); }
.section--paper .filter-search input { color: var(--paper-text); }

/* ============================================================
   BEFORE / AFTER COMPARE
   ============================================================ */
.ba { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); user-select: none; touch-action: none; background: var(--bg-3); }
.ba__layer { position: absolute; inset: 0; }
.ba__layer image-slot { width: 100%; height: 100%; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__tag { position: absolute; top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius); background: rgba(8,9,11,.72); z-index: 3; }
.ba__tag--before { left: 14px; color: var(--metal-200); }
.ba__tag--after { right: 14px; color: var(--accent); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--accent); z-index: 4; transform: translateX(-50%); }
.ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 6px 20px -4px rgba(0,0,0,.6); cursor: ew-resize; }
.ba__grip svg { width: 24px; height: 24px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.testi-card__quote { font-size: 18px; line-height: 1.55; color: var(--text); }
.testi-card__mark { font-family: var(--font-display); font-size: 60px; line-height: .6; color: var(--accent); height: 30px; }
.testi-card__who { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.testi-card__av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; background: var(--bg-3); }
.testi-card__av image-slot { width: 100%; height: 100%; }
.testi-card__who b { display: block; font-size: 15.5px; }
.testi-card__who span { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); letter-spacing: .04em; }
.section--paper .testi-card { background: var(--paper-surface); border-color: var(--paper-border); color: var(--paper-text); }
.section--paper .testi-card__quote { color: var(--paper-text); }
@media (max-width: 900px){ .testi-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FEATURE SPLIT (image + text)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4; background: var(--bg-3); border: 1px solid var(--border); }
.split__media image-slot { width: 100%; height: 100%; }
.split__body { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* ============================================================
   TIMELINE (Sobre)
   ============================================================ */
.timeline { position: relative; display: flex; flex-direction: column; gap: 4px; }
.timeline::before { content:""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 18px 0 18px 44px; }
.tl-item::before { content:""; position: absolute; left: 2px; top: 24px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl-item__year { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; color: var(--accent); }
.tl-item h3 { font-size: 24px; margin: 6px 0 8px; }
.tl-item p { margin: 0; color: var(--text-dim); max-width: 60ch; }

/* ============================================================
   FORM (Contato)
   ============================================================ */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.field input, .field select, .field textarea { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: var(--font-body); font-size: 16px; padding: 14px; outline: none;
  transition: border-color .18s, box-shadow .18s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field textarea { resize: vertical; min-height: 120px; }
.section--paper .field input, .section--paper .field select, .section--paper .field textarea { background: var(--paper-surface); border-color: var(--paper-border); color: var(--paper-text); }
@media (max-width: 620px){ .form-row { grid-template-columns: 1fr; } }

/* ---- Info list (contato) ---- */
.info-list { display: flex; flex-direction: column; gap: 4px; }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.info-item__ic { width: 44px; height: 44px; flex: none; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); }
.info-item__ic svg { width: 20px; height: 20px; }
.info-item b { font-family: var(--font-display); text-transform: uppercase; font-size: 17px; letter-spacing: .02em; }
.info-item span { display: block; color: var(--text-dim); font-size: 15.5px; }

/* ---- Big CTA band ---- */
.cta-band { position: relative; overflow: hidden; background: var(--accent); color: var(--accent-ink); }
.cta-band__hazard { position: absolute; inset: 0; opacity: .14;
  background-image: repeating-linear-gradient(-45deg, #000 0 30px, transparent 30px 60px); }
.cta-band .wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-block: clamp(48px, 6vw, 84px); }
.cta-band h2 { color: var(--accent-ink); }
.cta-band .btn--dark { background: var(--black); color: #fff; }
.cta-band .btn--dark:hover { box-shadow: 0 12px 24px -10px rgba(0,0,0,.5); }
