/* ==========================================================================
   IMPÉRIO DAS MÁQUINAS — Tokens e base
   Paleta da logo: blush, rose gold, creme e carvão.
   --c-yellow permanece como token de CTA (agora rose gold).
   ========================================================================== */
:root {
  --c-ink: #3a2c2c;
  --c-graphite: #4a3836;
  --c-graphite-2: #5a4440;
  --c-steel: #6b4f4a;
  --c-line-dark: rgba(255, 232, 224, 0.14);
  --c-text-dark: #f3d6d0;
  --c-muted-dark: #d4b4aa;

  --c-bg: #fbf4ef;
  --c-white: #fffdfb;
  --c-text: #2c2424;
  --c-muted: #7a6560;
  --c-line: #ead9d2;

  --c-accent: #c17f72;
  --c-accent-hover: #a8685c;
  --c-accent-bright: #e8c4b8;
  --c-yellow: #d4a090;
  --c-yellow-hover: #e0b4a6;
  --c-on-yellow: #2c2424;
  --c-success: #1f7a4a;
  --c-error: #b42318;

  --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-script: 'Great Vibes', 'Segoe Script', cursive;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 84px;
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible,
.section--dark :focus-visible,
.blueprint :focus-visible,
.on-dark :focus-visible { outline-color: var(--c-accent-bright); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--c-accent);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--muted { background: var(--c-bg); }
.section--dark { background: var(--c-ink); color: var(--c-text-dark); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }

.blueprint {
  background-color: var(--c-ink);
  background-image:
    linear-gradient(var(--c-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
}
.section--dark .eyebrow,
.on-dark .eyebrow { color: var(--c-accent-bright); }

.display {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.1; }

.section-head {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
}
.section-head h2 { color: var(--c-text); }
.section--dark .section-head h2,
.on-dark h2 { color: #fff; }

.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--c-muted);
  max-width: 60ch;
}
.section--dark .lead,
.on-dark .lead { color: var(--c-text-dark); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-yellow);
  --btn-fg: var(--c-on-yellow);
  --btn-bd: var(--c-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { --btn-bg: var(--c-yellow-hover); --btn-bd: var(--c-yellow-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-text); --btn-bd: var(--c-text); }
.btn--ghost:hover { --btn-bg: var(--c-text); --btn-fg: #fff; --btn-bd: var(--c-text); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.4); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-bd: #fff; }

.btn--dark { --btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: var(--c-ink); }
.btn--dark:hover { --btn-bg: var(--c-steel); --btn-bd: var(--c-steel); }

.btn--whatsapp { --btn-bg: #1f7a4a; --btn-fg: #fff; --btn-bd: #1f7a4a; }
.btn--whatsapp:hover { --btn-bg: #17603a; --btn-bd: #17603a; }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.link-arrow:hover { color: var(--c-accent); gap: 14px; }
.link-arrow svg { width: 16px; height: 16px; }
.section--dark .link-arrow,
.on-dark .link-arrow { color: #fff; }
.section--dark .link-arrow:hover,
.on-dark .link-arrow:hover { color: var(--c-accent-bright); }

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

/* ---------- Icons ---------- */
:where([data-icon]) { display: inline-flex; }
:where([data-icon]) svg { width: 1em; height: 1em; }

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px) clamp(48px, 7vw, 80px);
  color: var(--c-text-dark);
  overflow: hidden;
}
.page-hero h1 { color: #fff; margin-top: 18px; max-width: 16ch; }
.page-hero .lead { margin-top: 20px; }
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--c-line-dark);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--c-muted-dark);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: 0.5; }
.breadcrumb--light { color: var(--c-muted); }
.breadcrumb--light a:hover { color: var(--c-text); }

/* ---------- Misc ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: var(--c-white);
}
.tag--demo { border-color: rgba(0, 87, 200, 0.35); color: var(--c-accent); }

.divider { height: 1px; background: var(--c-line); border: 0; margin: 0; }
