/* roletes.com.br — industrial, clean, conversion-focused */
:root {
  --bg: #f6f7f9;
  --bg-card: #fff;
  --ink: #1a1d23;
  --ink-muted: #4a5060;
  --accent: #a8430e;
  --accent-hover: #863509;
  --border: #e2e5eb;
  --max: 68rem;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 3.5rem;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--accent-hover); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 200;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0.5rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo__text {
  display: inline-flex;
  align-items: center;
}

.logo__tld { font-weight: 600; color: var(--ink-muted); }

.logo__tech {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.logo__tech-label {
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.logo__tech-img {
  display: block;
  width: 3rem;
  height: auto;
}

.nav-toggle-btn {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: 6px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}

.nav-toggle-btn:hover { background: var(--bg); }

.nav-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle__icon {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
  position: relative;
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav__link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav__link:hover { color: var(--accent); }

.nav__link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

.nav__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover { background: var(--accent-hover); color: #fff; border-color: var(--accent-hover); }

.btn--ghost {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--ghost:hover { background: #fff; border-color: var(--accent); color: var(--accent); }

.btn--block { width: 100%; }

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  min-height: 50vh;
}

.crumb {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.crumb a { text-decoration: none; color: var(--ink-muted); }
.crumb a:hover { color: var(--accent); }
.crumb__sep { margin: 0 0.35rem; color: var(--border); }

.content-block { margin-top: 0; }
.content-block--home { max-width: none; }

.prose h1, .prose h2, .prose h3 { line-height: 1.2; }
.prose h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-top: 0; }
.prose .lede { color: #2d323b; }
.prose h2 { font-size: 1.25rem; margin-top: 1.75rem; }
.prose p { color: #2d323b; }
.prose ul, .prose ol { color: #2d323b; }
.prose a { font-weight: 500; }

/* Home */
.hero {
  position: relative;
  padding: 2.5rem 0 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e2430 0%, #2b3342 100%);
  color: #e8eaef;
  margin: 0 -0.5rem 2rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -20%;
  top: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(196, 90, 26, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 { position: relative; z-index: 1; margin: 0 0 0.75rem; font-size: clamp(1.5rem, 4vw, 2.2rem); color: #fff; }
.hero__lead { position: relative; z-index: 1; max-width: 40rem; color: #c4cad6; font-size: 1.05rem; margin: 0 0 1.5rem; }
.hero__ctas { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__ctas .btn--primary { background: var(--accent); }
.hero__ctas .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero__ctas .btn--ghost:hover { background: rgba(255,255,255,0.1); }

.home-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-bottom: 2.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  border-color: #cfd4dd;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.card h2 { font-size: 1.1rem; margin: 0; }
.card p { margin: 0; font-size: 0.95rem; color: var(--ink-muted); flex: 1; }
.card .btn { margin-top: auto; align-self: flex-start; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.trust strong { color: var(--ink); }

/* Product hub */
.hub h1 { margin-bottom: 0.5rem; }
.hub__intro { color: var(--ink-muted); max-width: 42rem; margin-bottom: 2rem; }

.product-section h2 { font-size: 1.1rem; margin: 2rem 0 0.75rem; color: var(--ink); }
.product-section:first-of-type h2 { margin-top: 0.5rem; }
.product-grid {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
}
.product-card {
  display: block;
  padding: 0.85rem 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  transition: border-color 0.15s, background 0.15s;
}
.product-card__title {
  display: block;
  margin-bottom: 0.35rem;
}
.product-card__desc {
  display: block;
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.86rem;
  line-height: 1.4;
}
.product-card:hover { border-color: var(--accent); background: #fff9f4; }

.product-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Guia index */
.guia-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.guia-list a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.guia-list a:hover { border-color: var(--accent); }

.guia-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.prose .orcamento__h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.card a:focus-visible,
.footer__links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Form */
.form {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 32rem) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.form input:focus-visible, .form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.form__hint { font-size: 0.8rem; color: var(--ink-muted); }
.form__check { display: flex; align-items: flex-start; gap: 0.5rem; }
.form__check input { width: auto; margin-top: 0.25rem; }
.form__error { color: #b32d2d; font-size: 0.9rem; }
.form__ok { color: #1d6b3a; font-weight: 600; }
.obrigado__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 32rem;
}
.contact-alt {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.contact-alt h2 { font-size: 1.1rem; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-bottom: 1.5rem;
}

.footer__h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin: 0 0 0.5rem; }
.footer__lede { margin: 0.5rem 0 0; }
.footer__copy { text-align: center; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 0.8rem; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; color: var(--ink); }
.footer__links a:hover { color: var(--accent); }
.footer__small { font-size: 0.85rem; }

@media (max-width: 50rem) {
  .nav-toggle-btn { display: block; margin-left: auto; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.75rem;
  }
  .nav.is-open {
    display: flex;
  }
  .nav__list { flex-direction: column; }
  .nav__cta { flex-direction: column; align-items: stretch; }
  .nav__cta .btn { width: 100%; }
  .header-inner { position: relative; }
}

/* Keep nav in row for larger screens: override */
@media (min-width: 50.01rem) {
  .nav-toggle-btn { display: none !important; }
  .nav { display: flex !important; width: auto; }
}

@media (min-width: 50.01rem) {
  .header-inner { flex-wrap: nowrap; }
  .nav { flex: 1; justify-content: flex-end; }
}

.logo--foot { display: inline-block; margin-bottom: 0.25rem; }
