:root {
  --blue: #25206f;
  --blue-deep: #161348;
  --cyan: #08a4d8;
  --ink: #141625;
  --muted: #636978;
  --line: #dde2ea;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --green: #1fa463;
  --shadow: 0 18px 44px rgba(20, 22, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px clamp(18px, 5vw, 72px);
  color: #eef5ff;
  background: var(--blue-deep);
  font-size: 0.85rem;
}

.topbar-actions,
.menu,
.hero-actions,
.contact-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 clamp(18px, 5vw, 72px);
}

.brand img {
  width: 176px;
  filter: drop-shadow(0 10px 18px rgba(37, 32, 111, 0.18));
}

.menu a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.menu a:hover,
.text-link:hover {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, 88vh);
  align-items: center;
  overflow: hidden;
  color: white;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(11, 12, 28, 0.88), rgba(24, 21, 79, 0.68) 46%, rgba(8, 164, 216, 0.2));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 5vw, 72px);
  padding: 74px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 660px;
  color: #e8ecf6;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(31, 164, 99, 0.3);
}

.button.secondary {
  color: var(--blue);
  background: white;
  border-color: var(--line);
}

.button.compact {
  min-height: 42px;
  color: white;
  background: var(--blue);
}

.quick-search,
.inventory,
.services,
.about,
.contact,
.footer,
.page-hero,
.vehicle-detail {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.quick-search {
  background: var(--soft);
}

.section-heading {
  width: min(1080px, 100%);
  margin: 0 auto 28px;
}

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

.text-link {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr auto;
  gap: 12px;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label span {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

select,
input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.vehicle-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.vehicle-card,
.service-grid article {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 22, 37, 0.08);
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--soft);
}

.vehicle-body {
  padding: 22px;
}

.vehicle-brand {
  margin-bottom: 4px;
  color: var(--cyan);
  font-weight: 900;
}

dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 900;
}

.empty-state {
  width: min(1180px, 100%);
  margin: 22px auto 0;
  color: var(--muted);
  font-weight: 700;
}

.services {
  background: var(--blue-deep);
  color: white;
}

.services .section-heading p,
.services article p {
  color: #dfe6f5;
}

.service-grid article {
  padding: 26px;
  color: var(--ink);
}

.service-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  color: white;
  background: var(--cyan);
  border-radius: 8px;
  font-weight: 900;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.about-media img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-copy p:not(.eyebrow),
.contact p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.stats div {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats strong {
  display: block;
  color: var(--blue);
  font-size: 1.9rem;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: var(--soft);
}

.contact > div:first-child {
  max-width: 720px;
}

.page-hero {
  color: white;
  background:
    linear-gradient(120deg, rgba(22, 19, 72, 0.94), rgba(37, 32, 111, 0.86)),
    url("/assets/loja.jpeg") center / cover;
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
}

.page-hero p {
  max-width: 760px;
  color: #e7ebf7;
  font-size: 1.15rem;
}

.vehicle-detail {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.vehicle-detail-media {
  position: sticky;
  top: 122px;
}

.vehicle-detail-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.vehicle-detail-copy h1 {
  margin-bottom: 20px;
  color: var(--blue-deep);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.vehicle-detail-copy > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0;
}

.detail-list div,
.feature-list li {
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.contact-page {
  align-items: flex-start;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  color: #d9def1;
  background: var(--blue-deep);
}

.footer img {
  width: 158px;
  margin-bottom: 18px;
}

.footer p {
  margin-bottom: 0;
}

.footer-links {
  align-content: start;
  justify-content: end;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: white;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(31, 164, 99, 0.35);
  font-size: 0.85rem;
  font-weight: 1000;
}

.admin-body {
  min-height: 100vh;
  background: var(--soft);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.admin-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card {
  width: min(440px, 100%);
  padding: 32px;
}

.login-card img {
  width: 158px;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 18px rgba(37, 32, 111, 0.18));
}

.login-card h1,
.admin-title h1 {
  margin-bottom: 10px;
  color: var(--blue-deep);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.alert {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.alert.error {
  color: #9a1d28;
  background: #fff0f1;
  border: 1px solid #ffd3d7;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: var(--blue-deep);
  color: white;
}

.admin-header img {
  width: 150px;
}

.admin-header nav {
  display: flex;
  gap: 16px;
  font-weight: 900;
}

.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-title p:not(.eyebrow) {
  color: var(--muted);
}

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

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

.admin-table th,
.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-car-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-car-cell img {
  width: 74px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-car-cell span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status.published {
  color: #12623c;
  background: #e8f8ef;
}

.status.draft {
  color: #7a5b09;
  background: #fff7dd;
}

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

.admin-actions a,
.admin-actions button {
  color: var(--blue);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-form {
  padding: clamp(20px, 4vw, 34px);
}

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

textarea {
  width: 100%;
  padding: 13px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.admin-form label {
  display: block;
  margin-bottom: 14px;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.check-row span {
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 920px) {
  .topbar,
  .section-heading.split,
  .contact,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .menu.is-open {
    display: flex;
  }

  .search-grid,
  .vehicle-grid,
  .service-grid,
  .about,
  .stats,
  .footer,
  .vehicle-detail,
  .detail-list,
  .feature-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-detail-media {
    position: static;
  }

  .admin-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact {
    display: block;
  }

  .contact-actions {
    margin-top: 18px;
  }
}

@media (max-width: 560px) {
  .nav {
    min-height: 74px;
  }

  .brand img {
    width: 142px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding: 70px 0 78px;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  dl {
    grid-template-columns: 1fr;
  }
}
