:root {
  --yellow: #ffc928;
  --yellow-strong: #f6b700;
  --black: #171717;
  --ink: #2a2a2a;
  --muted: #707070;
  --line: #dedede;
  --soft: #f6f6f3;
  --white: #ffffff;
  --green: #15803d;
  --red: #b42318;
  --shadow: 0 18px 45px rgba(23, 23, 23, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.9rem;
  letter-spacing: 0;
  overflow: hidden;
}

.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  color: var(--black);
  font-size: 1.24rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.brand-word strong {
  color: var(--yellow-strong);
  font-weight: 950;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3f3f3f;
  font-size: 0.94rem;
}

.nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.nav a:hover {
  background: #f0f0ea;
}

.menu-toggle {
  display: none;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-weight: 800;
}

.page {
  padding-bottom: 56px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: clamp(32px, 6vw, 72px) 0 38px;
}

.hero h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(2.2rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 18px 0 0;
  color: #555;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 680px;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid #e4e1d4;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  border: 1px solid #e6e2d4;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: #fff3c1;
}

.hero-card-body {
  padding: 18px;
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.step,
.card,
.panel,
.summary-tile {
  border: 1px solid #e5e2d8;
  border-radius: 8px;
  background: var(--white);
}

.step {
  min-height: 150px;
  padding: 18px;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--black);
  color: var(--yellow);
  font-weight: 900;
}

.step h3,
.card h3,
.panel h2,
.panel h3 {
  margin: 0;
  color: var(--black);
  line-height: 1.15;
}

.step p,
.muted {
  color: var(--muted);
}

.mission-band {
  padding: 34px 0;
  background: var(--black);
  color: var(--white);
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(20px, 5vw, 54px);
  align-items: center;
}

.mission-grid h2 {
  max-width: 760px;
  margin: 12px 0;
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.mission-grid p {
  max-width: 720px;
  margin: 0;
  color: #d8d8d8;
  font-size: 1.08rem;
}

.mission-stats {
  display: grid;
  gap: 10px;
}

.mission-stats div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.mission-stats strong,
.mission-stats span {
  display: block;
}

.mission-stats strong {
  color: var(--yellow);
  font-size: 1.3rem;
}

.mission-stats span {
  color: #dddddd;
}

.section {
  padding: 34px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  padding: clamp(18px, 3vw, 28px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #3a3a3a;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #d8d4c8;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  outline: none;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(255, 201, 40, 0.34);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font-weight: 900;
  text-align: center;
}

.btn.primary {
  background: var(--yellow);
  color: var(--black);
}

.btn.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--black);
}

.btn.danger {
  background: #fee4e2;
  color: var(--red);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.locadora-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.locadora-card img,
.logo-large {
  border: 1px solid #ece6d2;
  border-radius: 8px;
  background: #fff8df;
}

.locadora-meta,
.equipment-meta,
.request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 8px;
  background: #f1f1ec;
  color: #4a4a4a;
  font-size: 0.86rem;
  font-weight: 800;
}

.pill.yellow {
  background: #fff1b8;
  color: #5b4300;
}

.pill.green {
  background: #dcfce7;
  color: var(--green);
}

.pill.red {
  background: #fee4e2;
  color: var(--red);
}

.stars {
  color: #d69b00;
  font-weight: 900;
}

.company-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.logo-large {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.equipment-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.equipment-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #fff4c9;
}

.equipment-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
}

.price {
  color: var(--black);
  font-size: 1.45rem;
  font-weight: 950;
}

.price small {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid #ece9df;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: #4b4b4b;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-tile {
  padding: 16px;
}

.summary-tile strong {
  display: block;
  color: var(--black);
  font-size: 1.8rem;
}

.login-box {
  max-width: 480px;
}

.modal-host {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(23, 23, 23, 0.58);
}

.modal-host.open {
  display: flex;
}

.modal {
  width: min(680px, 100%);
  max-height: min(88vh, 780px);
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid #ece9df;
}

.modal-head h2 {
  margin: 0;
  color: var(--black);
  font-size: 1.25rem;
}

.modal-body {
  padding: 18px;
}

.close-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: none;
  max-width: 360px;
  padding: 13px 14px;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

.empty {
  padding: 24px;
  border: 1px dashed #cbc6b8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .grid.two,
  .grid.three,
  .grid.four,
  .quick-steps,
  .summary-grid,
  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
  }

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

  .nav {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .hero,
  .hero-search,
  .quick-steps,
  .grid.two,
  .grid.three,
  .grid.four,
  .summary-grid,
  .mission-grid,
  .form-grid,
  .filters,
  .company-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 14vw, 4rem);
  }

  .hero-card img {
    height: 220px;
  }

  .mission-band {
    padding: 28px 0;
  }

  .locadora-card {
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 12px;
  }

  .logo-large {
    width: 112px;
    height: 112px;
  }

  .btn {
    width: 100%;
  }

  .actions .btn {
    flex: 1 1 180px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
