:root {
  --bg: #f7f4ee;
  --fg: #1c1917;
  --brand: #f5c400;
  --brand-dark: #d4a800;
  --slate: #0f172a;
  --muted: #64748b;
  --line: #e7e5e4;
  --white: #fff;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--brand); color: #111827; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; width: 100%; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site main { flex: 1; }
.topbar { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(8px); }
.topbar .brand-line { height: 4px; background: var(--brand); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .85rem; max-width: 72rem; margin: 0 auto; width: 100%; min-width: 0; }
.logo { min-width: 0; flex: 0 1 auto; }
.logo img { height: 3.1rem; width: auto; max-width: min(210px, 58vw); object-fit: contain; object-position: left; display: block; }
@media (min-width: 640px) { .logo img { height: 4rem; max-width: 240px; } }
.nav-desk { display: none; align-items: center; gap: .1rem; flex: 1 1 auto; justify-content: center; min-width: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  height: 2.35rem;
  padding: 0 .75rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: #f5f5f4; color: #0f172a; }
.weather-page { max-width: 64rem; }
.weather-card {
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}
.weather-frame {
  display: block;
  width: calc(100% + 24px);
  max-width: none;
  height: 4200px;
  border: 0;
  overflow: hidden;
  background: #fff;
}
.actions-desk { display: none; align-items: center; gap: .5rem; flex-shrink: 0; }
.menu-btn { display: inline-flex; flex-shrink: 0; height: 2.35rem; padding: 0 .95rem; }
@media (min-width: 1024px) {
  .nav-desk, .actions-desk { display: flex; }
  .menu-btn, .mobile-panel, .mobile-panel.open { display: none !important; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; cursor: pointer; border-radius: 999px; font-weight: 700; padding: .55rem 1.1rem; }
.topbar .btn { height: 2.35rem; padding: 0 1rem; font-size: .8125rem; }
.btn-brand { background: var(--brand); color: #0f172a; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-dark { background: #0f172a; color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-outline { border: 1px solid var(--line); background: #fff; font-weight: 600; }
.btn-ghost { background: transparent; color: #334155; font-weight: 700; }
.btn-ghost:hover { background: #f5f5f4; color: #0f172a; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe57; }
.card-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.card-actions .btn { flex: 1 1 8rem; }
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 1.1rem .75rem 3rem;
  background-color: #020617;
  background-image:
    linear-gradient(180deg, rgba(8,8,8,.28), rgba(8,8,8,.62)),
    radial-gradient(circle at 20% 20%, rgba(245,196,0,.18), transparent 40%);
}
@media (min-width: 768px) { .hero { padding: 2rem 1rem 5rem; } }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f5c400' fill-opacity='0.14'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
  background-repeat: repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(2, 6, 23, 0.52);
}
.hero > * { position: relative; z-index: 1; }
.kicker { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
@media (min-width: 640px) { .kicker { font-size: .8rem; letter-spacing: .2em; } }
h1, h2, h3 { line-height: 1.15; overflow-wrap: anywhere; }
.hero h1 { font-size: clamp(1.55rem, 7vw, 3.2rem); font-weight: 800; margin: .75rem 0; }
.hero-lead { max-width: 36rem; margin: 1rem auto; font-size: clamp(.95rem, 3.6vw, 1.1rem); color: rgba(255,255,255,.8); }
.muted { color: var(--muted); }
.center { text-align: center; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .sm-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } .md-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } .lg-3 { grid-template-columns: 1fr 1fr 1fr; } .lg-sidebar { grid-template-columns: 260px 1fr; } }
.section { padding: 2.5rem 0; }
@media (min-width: 768px) { .section { padding: 4rem 0; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; min-width: 0; }
.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,25,23,.12); }
.pill { display: inline-flex; border-radius: 999px; padding: .25rem .7rem; font-size: .75rem; font-weight: 700; background: #f5f5f4; }
.pill-brand { background: #fffbeb; color: #92400e; }
a.pill { border: 1px solid var(--line); background: #fff; }
a.pill:hover { background: #fffbeb; }
a.pill.is-active { background: var(--brand); color: #0f172a; border-color: var(--brand); }
.subcat-group { margin: 0 0 1.35rem; }
.subcat-group h2 { font-size: 1.15rem; margin: 0 0 .65rem; }
.subcat-group h2 a { display: inline-flex; align-items: center; gap: .45rem; }
.subcat-group h2 svg { width: 1.15rem; height: 1.15rem; color: #92400e; }
.icons-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.icon-chip { width: 2.5rem; height: 2.5rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgba(245,196,0,.15); color: var(--brand); }
.icon-chip svg { width: 1.15rem; height: 1.15rem; }
.cat-bar {
  display: none;
}
@media (min-width: 640px) {
  .cat-bar {
    display: grid;
    max-width: 64rem;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .5rem;
    background: #fff;
    border-radius: 1rem;
    padding: .75rem;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
  }
}
@media (min-width: 1024px) { .cat-bar { grid-template-columns: repeat(auto-fit, minmax(4.2rem, 1fr)); } }
.cat-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  border-radius: .75rem;
  padding: .45rem .2rem;
  color: #334155;
  flex: 0 0 4.6rem;
  width: 4.6rem;
  min-width: 4.6rem;
}
@media (min-width: 640px) {
  .cat-bar a { flex: unset; width: auto; min-width: 0; padding: .5rem .15rem; }
}
.cat-bar a:hover { background: #fffbeb; }
.cat-bar svg { width: 1.5rem; height: 1.5rem; color: #f59e0b; margin-bottom: .25rem; flex-shrink: 0; overflow: visible; }
.cat-bar span { font-size: 10px; font-weight: 600; line-height: 1.15; color: #334155; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
@media (min-width: 640px) { .cat-bar span { font-size: 11px; } }
.avatar { width: 3.5rem; height: 3.5rem; border-radius: 999px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fef3c7; color: #92400e; font-weight: 900; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.field { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.field input, .field select, .field textarea { width: 100%; margin-top: .35rem; border: 1px solid #d6d3d1; border-radius: .75rem; padding: .55rem .75rem; background: #fff; }
.featured-toggle {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  border: 1px solid #fde68a;
  border-radius: .85rem;
  background: #fffbeb;
  cursor: pointer;
}
.featured-toggle input { width: auto; margin-top: .2rem; accent-color: #d97706; }
.featured-toggle strong { display: block; font-size: .95rem; }
.signup-choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  background: #f5f5f4;
  padding: .35rem;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .signup-choice { grid-template-columns: 1fr 1fr 1fr; }
}
.signup-choice label {
  margin: 0;
  padding: .85rem .7rem;
  border-radius: .85rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  background: transparent;
}
.signup-choice input { position: absolute; opacity: 0; pointer-events: none; }
.signup-choice strong { display: block; font-size: .88rem; }
.signup-choice span { display: block; margin-top: .25rem; font-size: .72rem; font-weight: 500; color: var(--muted); line-height: 1.3; }
.signup-choice label:has(input:checked) {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(28,25,23,.08);
}
.consent {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: .85rem;
  padding: .9rem 1rem;
  margin: 0 0 1.25rem;
  font-size: .85rem;
  font-weight: 500;
  color: #44403c;
  line-height: 1.45;
  cursor: pointer;
}
.consent input {
  margin-top: .2rem;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  accent-color: #d4a800;
}
.signup-form .company-field { display: none; }
.signup-form:has([name=intent][value=profissional]:checked) .company-field,
.signup-form:has([name=intent][value=comercio]:checked) .company-field { display: block; }
.alert { padding: .75rem 1rem; border-radius: .75rem; font-weight: 600; margin-bottom: 1rem; }
.alert-error { background: #fef2f2; color: #b91c1c; }
.alert-ok { background: #ecfdf5; color: #047857; }
.footer { margin-top: 4rem; background: #020617; color: #d6d3d1; }
.footer a:hover { color: var(--brand); }
.footer-inner { display: grid; gap: 2rem; padding: 3rem 1rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.logo-light { background: #fff; border-radius: .75rem; padding: .4rem .6rem; display: inline-flex; }
.search {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  max-width: 42rem;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: .55rem .55rem .55rem .85rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
@media (min-width: 640px) { .search { gap: .75rem; padding: .75rem 1rem; } }
.search svg { width: 1.25rem; height: 1.25rem; color: #64748b; flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; outline: none; color: #0f172a; }
.search input::placeholder { color: #94a3b8; }
.search button {
  border: 0;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (min-width: 640px) { .search button { font-size: .875rem; padding: .5rem 1.25rem; } }
.search button:hover { background: #1e293b; }
.btn svg, .check-list svg, .icon-inline { width: 1rem; height: 1rem; flex-shrink: 0; }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.check-list li { display: flex; align-items: center; gap: .5rem; margin: .55rem 0; color: rgba(255,255,255,.8); }
.check-list svg { width: 1.25rem; height: 1.25rem; color: var(--brand); }
.star-row { display: inline-flex; align-items: center; gap: .25rem; color: #d97706; font-size: .875rem; font-weight: 800; }
.star-row svg { width: 1rem; height: 1rem; fill: #fbbf24; color: #fbbf24; }
.meta-row { display: flex; align-items: flex-start; gap: .35rem; margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
.meta-row svg { width: 1rem; height: 1rem; margin-top: .15rem; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.chip { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .25rem .75rem; font-size: .85rem; font-weight: 600; color: #fff; }
.chip:hover { background: rgba(255,255,255,.1); }
.dash { display: grid; gap: 1.5rem; padding: 2.5rem 0; }
.side a { display: flex; padding: .55rem .75rem; border-radius: .75rem; font-size: .9rem; font-weight: 600; color: #475569; }
.side a.active { background: #fffbeb; color: #0f172a; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.flex { display: flex; gap: .75rem; min-width: 0; }
.between { justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.grow { min-width: 0; flex: 1; }
.mobile-panel { display: none; padding: .35rem 1rem 1.1rem; }
.mobile-panel.open { display: block; }
.mobile-panel .nav-link { width: 100%; justify-content: flex-start; height: auto; padding: .8rem .9rem; font-size: .95rem; }
.mobile-panel .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .65rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.mobile-panel .mobile-actions .btn { width: 100%; margin: 0; }
.mobile-panel .mobile-logout { grid-column: 1 / -1; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, .55);
}
.modal-backdrop.open { display: flex; }
.modal {
  position: relative;
  width: 100%;
  max-width: 26rem;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
}
.modal h2 { margin: 0 1.5rem 0 0; }
.modal-close {
  position: absolute;
  top: .6rem;
  right: .7rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.modal-tabs { display: flex; gap: .4rem; margin: 1rem 0; }
.modal-tabs button {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .45rem .7rem;
  font-weight: 800;
  cursor: pointer;
}
.modal-tabs button.on { background: #0f172a; color: #fff; border-color: #0f172a; }
.chip-dark { border: 1px solid #d6d3d1; border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; font-weight: 700; color: #1c1917; background: #fff; }
.chip-dark:hover { border-color: #0f172a; }
.ride-search { display: grid; gap: .75rem; align-items: end; }
.ride-search .field { margin-bottom: 0; }
.ride-search datalist { display: none; }
.ride-search > .btn { width: 100%; }
@media (min-width: 1100px) {
  .ride-search { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) 9.5rem 7.5rem auto; }
  .ride-search > .btn { width: auto; }
}
.ride-card { display: grid; gap: 1rem; }
@media (min-width: 768px) { .ride-card { grid-template-columns: 1fr auto; align-items: center; } }
.ride-time { width: 4.5rem; text-align: right; font-weight: 800; flex: none; }
