/* LYN COMPONENTES LTDA — site institucional */
:root {
  --red: #e00010;
  --red-hover: #c4000e;
  --ink: #181818;
  --muted: #5a5a5a;
  --line: #e8e8e8;
  --bg: #f5f5f5;
  --paper: #ffffff;
  --max: 1120px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(24, 24, 24, 0.06), 0 8px 24px rgba(24, 24, 24, 0.06);
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--red); }
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

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

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Header */
.topbar { height: 4px; background: var(--red); }
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.85rem 0;
}
.logo { display: block; }
.logo img { width: min(220px, 52vw); height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--red-hover); color: #fff !important; }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red) !important; background: transparent; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 5.5rem 0 5rem;
}
.eyebrow {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  max-width: 16ch;
  font-weight: 700;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Sections */
section { padding: 4.5rem 0; }
section.alt { background: var(--bg); }
h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  line-height: 1.2;
}
.intro {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 2.4rem;
  font-size: 1.08rem;
}

.about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}
.about-grid p { margin: 0 0 1rem; color: #333; }
.aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}
.aside-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.aside-card p { margin: 0 0 1rem; color: var(--muted); font-size: 0.98rem; }

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.45rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  position: relative;
}
.card::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--red);
  margin-bottom: 1rem;
}
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }
.address { font-style: normal; }

.map-note { margin-top: 1.4rem; }

/* Legal pages */
.legal {
  padding: 3.5rem 0 5rem;
}
.legal-body {
  max-width: 760px;
}
.legal-body h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.legal-body h2 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }
.legal-body p, .legal-body li { color: #333; }
.crumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.crumb a { color: var(--muted); }

/* Footer */
.footer {
  background: var(--ink);
  color: #d8d8d8;
  padding: 2.4rem 0 2rem;
  font-size: 0.92rem;
}
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #ff7a7a; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer strong { color: #fff; font-weight: 650; }
.footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.cnpj { margin: 0.25rem 0 0; color: #b0b0b0; }

@media (max-width: 820px) {
  .about-grid, .contact-grid, .products { grid-template-columns: 1fr; }
  .hero { padding: 3.4rem 0 3.2rem; }
  section { padding: 3.4rem 0; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.2rem 1.1rem;
  }
  .header:has(#menu-toggle:checked) .nav { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 0.7rem; width: 100%; }
  .header { position: sticky; }
  .header-inner { position: relative; }
}
