/* ==========================================================================
   LF Parafusos — design system
   ========================================================================== */

:root {
  --navy: #3e4095;
  --navy-dark: #2b2d6b;
  --navy-darker: #1f2050;
  --yellow: #fff212;
  --yellow-dark: #e6da00;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --ink: #201e1e;
  --gray-50: #f5f5f7;
  --gray-100: #e9e9ee;
  --gray-400: #8a8a95;
  --white: #ffffff;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 2px 10px rgba(32, 30, 30, 0.08);
  --shadow-lg: 0 12px 32px rgba(32, 30, 30, 0.14);
  --container: 1160px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top contact bar ---------------------------------------------------------- */
.topbar {
  background: var(--navy-darker);
  color: var(--white);
  font-size: 0.86rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.topbar__channels a { display: inline-flex; align-items: center; gap: 6px; }
.topbar__channels a:hover { color: var(--yellow); }
.topbar__channels svg { width: 15px; height: 15px; flex: none; }
.topbar__tagline { color: var(--gray-100); }

/* Header ------------------------------------------------------------------ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: var(--radius);
  color: var(--navy-dark);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--gray-50);
  color: var(--navy);
}
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.header-cta:hover { background: var(--whatsapp-dark); color: var(--white); }
.header-cta svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }

/* Hero ------------------------------------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,242,18,.14), transparent 55%);
  pointer-events: none;
}
.hero .container {
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
  display: grid;
  gap: 32px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-darker);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  max-width: 22ch;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--gray-100);
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.hero__panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(2px);
}
.hero__panel h2 {
  font-size: 1.05rem;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.hero__stat { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.hero__stat strong { font-size: 1.7rem; color: var(--white); }
.hero__stat span { color: var(--gray-100); font-size: .92rem; }

/* Page header (non-home pages) --------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 44px 0;
}
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-header p { color: var(--gray-100); max-width: 60ch; margin-bottom: 0; }

/* Breadcrumbs --------------------------------------------------------------- */
.breadcrumbs {
  font-size: .85rem;
  color: var(--gray-100);
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--gray-100); text-decoration: underline; }
.breadcrumbs a:hover { color: var(--yellow); }
.breadcrumbs .sep { margin: 0 6px; opacity: .6; }

/* Sections ------------------------------------------------------------------ */
section { padding: 64px 0; }
.section-alt { background: var(--gray-50); }
.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-title .eyebrow {
  display: block;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.section-title h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-title p { color: var(--gray-400); }

/* Category cards ------------------------------------------------------------ */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 2px solid var(--yellow);
}
.card__icon svg { width: 28px; height: 28px; color: var(--navy); }
.card h3 { font-size: 1.15rem; color: var(--navy-dark); }
.card p { color: var(--gray-400); font-size: .95rem; flex: 1; }
.card__link {
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.card__link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card:hover .card__link svg { transform: translateX(3px); }

/* Trust strip ---------------------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.trust-item { text-align: center; padding: 12px; }
.trust-item strong {
  display: block;
  font-size: 2rem;
  color: var(--navy);
}
.trust-item span { color: var(--gray-400); font-size: .92rem; }

/* Brands ---------------------------------------------------------------------- */
.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
}
.brands span {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--navy-dark);
  font-size: .92rem;
}

/* Category page content -------------------------------------------------------- */
.category-body {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: start;
}
.subcat-list { display: grid; gap: 12px; margin: 24px 0; }
.subcat-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.subcat-list svg { width: 20px; height: 20px; color: var(--navy); flex: none; margin-top: 2px; }
.sidebar-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.sidebar-card h3 { color: var(--yellow); font-size: 1.1rem; }
.sidebar-card p { color: var(--gray-100); font-size: .94rem; }
.sidebar-card .btn { margin-top: 8px; }
.related-cats { margin-top: 18px; display: grid; gap: 8px; }
.related-cats a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  font-weight: 600;
  color: var(--navy-dark);
}
.related-cats a:hover { background: var(--gray-50); }

/* Localização / map ------------------------------------------------------------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.map-frame {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.address-card h3 { color: var(--navy); }
.address-card address { font-style: normal; color: var(--ink); margin-bottom: 18px; }
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.hours-table td { padding: 6px 0; border-bottom: 1px solid var(--gray-100); font-size: .95rem; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy-dark); }

/* History timeline (Sobre) ------------------------------------------------------ */
.timeline { display: grid; gap: 22px; margin-top: 30px; }
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: start;
}
.timeline-item strong {
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  padding: 8px 0;
  text-align: center;
  font-size: .95rem;
}
.timeline-item p { margin: 0; color: var(--ink); }
.timeline-item h4 { margin: 0 0 4px; color: var(--navy-dark); }

/* CTA band ------------------------------------------------------------------------ */
.cta-band {
  background: var(--navy-darker);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--gray-100); max-width: 56ch; margin: 0 auto 26px; }
.cta-band .hero__actions { justify-content: center; margin-top: 0; }

/* Footer ---------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-darker);
  color: var(--gray-100);
  padding: 52px 0 24px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.footer-grid ul { display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--yellow); }
.footer-brand img { height: 34px; margin-bottom: 12px; }
.footer-brand p { color: var(--gray-400); max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: var(--gray-400);
  font-size: .85rem;
}

/* Floating WhatsApp button ------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  background: var(--whatsapp);
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.whatsapp-float:hover { background: var(--whatsapp-dark); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* 404 ------------------------------------------------------------------------------------ */
.not-found {
  text-align: center;
  padding: 100px 0;
}
.not-found .code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

/* Responsive -------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .category-body { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar .container { justify-content: center; text-align: center; }
  .topbar__tagline { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 16px; }
  .header-cta span { display: none; }
  .header-cta { padding: 10px 14px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}
