/* Auto Car 2026 — premium visual layer */
:root {
  --background: 220 24% 5%;
  --foreground: 210 20% 98%;
  --card: 220 20% 8%;
  --card-foreground: 210 20% 98%;
  --popover: 220 20% 8%;
  --popover-foreground: 210 20% 98%;
  --primary: 211 100% 57%;
  --primary-foreground: 0 0% 100%;
  --secondary: 218 18% 12%;
  --secondary-foreground: 210 18% 91%;
  --muted: 218 18% 11%;
  --muted-foreground: 215 12% 64%;
  --accent: 155 72% 42%;
  --accent-foreground: 0 0% 100%;
  --border: 216 18% 18%;
  --input: 216 18% 18%;
  --ring: 211 100% 57%;
  --radius: .5rem;
  --font-heading: "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --gradient-primary: linear-gradient(135deg, hsl(211 100% 59%), hsl(205 100% 47%));
  --shadow-glow: 0 18px 50px hsl(211 100% 50% / .22);
  --shadow-card: 0 16px 50px hsl(220 40% 2% / .48);
}

html {
  scroll-behavior: smooth;
  background: hsl(var(--background));
}

body {
  background:
    linear-gradient(180deg, hsl(220 24% 5%), hsl(220 24% 4%));
  letter-spacing: 0;
}

::selection {
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
}

/* Navigation */
header.sticky {
  border-color: hsl(216 20% 22% / .7) !important;
  background: hsl(220 28% 5% / .86) !important;
  box-shadow: 0 1px 0 hsl(0 0% 100% / .025), 0 14px 40px hsl(220 40% 2% / .34);
  backdrop-filter: blur(22px) saturate(140%);
}

header.sticky > .container {
  min-height: 78px;
}

header.sticky img[alt="Auto Car"] {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: .5rem !important;
  border: 1px solid hsl(var(--primary) / .35);
  background: hsl(220 20% 8%);
  box-shadow: 0 0 0 4px hsl(var(--primary) / .06), 0 10px 26px hsl(220 40% 2% / .5);
}

header.sticky h1 {
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

header.sticky h1 + span {
  color: hsl(var(--muted-foreground)) !important;
  font-size: .625rem !important;
  letter-spacing: .18em !important;
}

header.sticky nav a {
  position: relative;
  padding: .65rem 0;
  color: hsl(var(--foreground) / .82) !important;
}

header.sticky nav a::after {
  position: absolute;
  right: 0;
  bottom: .25rem;
  left: 0;
  height: 2px;
  content: "";
  background: hsl(var(--primary));
  transform: scaleX(.35);
  transition: transform .25s ease;
}

header.sticky nav a:hover::after {
  transform: scaleX(1);
}

/* Hero */
header.sticky + section {
  min-height: min(790px, calc(100svh - 78px)) !important;
  isolation: isolate;
  border-bottom: 1px solid hsl(var(--border));
}

header.sticky + section > img {
  object-position: center 58%;
  filter: saturate(.88) contrast(1.08);
  transform: scale(1.015);
}

header.sticky + section > img + div {
  background:
    linear-gradient(90deg, hsl(220 28% 4% / .82) 0%, hsl(220 28% 4% / .34) 50%, hsl(220 28% 4% / .58) 100%),
    linear-gradient(180deg, hsl(220 28% 4% / .3) 0%, hsl(220 28% 4% / .02) 50%, hsl(220 28% 4%) 100%) !important;
}

header.sticky + section > .relative {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 5.5rem 2rem 4rem !important;
  text-align: left !important;
}

header.sticky + section > .relative > div:first-child {
  margin-bottom: 1.5rem !important;
  border-radius: .25rem !important;
  border-color: hsl(var(--primary) / .36) !important;
  background: hsl(220 28% 5% / .66) !important;
  box-shadow: inset 3px 0 0 hsl(var(--primary));
  backdrop-filter: blur(12px);
}

header.sticky + section h1 {
  max-width: 850px;
  font-size: clamp(3rem, 6vw, 5.9rem) !important;
  line-height: .98 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
  text-shadow: 0 8px 34px hsl(220 50% 2% / .72);
}

header.sticky + section h1 .text-gradient {
  color: hsl(var(--primary));
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

header.sticky + section p {
  max-width: 620px !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  color: hsl(210 16% 82%) !important;
  font-size: 1.08rem !important;
}

header.sticky + section button.mt-10 {
  min-height: 54px;
  border-radius: .35rem !important;
  padding: 1rem 1.75rem !important;
  box-shadow: 0 14px 38px hsl(var(--primary) / .3) !important;
}

header.sticky + section button.mt-10:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 19px 46px hsl(var(--primary) / .38) !important;
}

header.sticky + section .mt-14 {
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  justify-content: flex-start !important;
  gap: 1rem !important;
}

header.sticky + section .mt-14 > div {
  min-height: 42px;
  padding: .65rem .9rem;
  border: 1px solid hsl(0 0% 100% / .11);
  border-radius: .35rem;
  color: hsl(210 16% 78%) !important;
  background: hsl(220 28% 5% / .56);
  backdrop-filter: blur(10px);
}

/* Catalog */
#catalogo {
  max-width: 1400px;
  padding-top: 6rem !important;
  padding-bottom: 7rem !important;
}

#catalogo > div:first-child {
  position: relative;
  margin-bottom: 2.75rem !important;
  text-align: left !important;
}

#catalogo > div:first-child::before {
  display: block;
  margin-bottom: .9rem;
  color: hsl(var(--primary));
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  content: "ESTOQUE SELECIONADO";
}

#catalogo h2,
#catalogo + section h2 {
  font-size: clamp(2rem, 3.2vw, 3rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

#catalogo > div:first-child p {
  font-size: .9rem !important;
}

#catalogo > .mb-8 {
  padding: .75rem;
  border: 1px solid hsl(var(--border));
  border-radius: .5rem;
  background: hsl(var(--card));
  box-shadow: 0 12px 32px hsl(220 40% 2% / .3);
}

#catalogo input,
#catalogo select {
  min-height: 50px;
  border-radius: .35rem !important;
  background: hsl(218 18% 10%) !important;
}

#catalogo > .grid {
  gap: 1.5rem !important;
}

#catalogo > .grid > div > .group {
  border-radius: .5rem !important;
  border-color: hsl(216 18% 20%) !important;
  background: linear-gradient(155deg, hsl(220 20% 9%), hsl(220 22% 7%)) !important;
  box-shadow: 0 14px 42px hsl(220 50% 2% / .42) !important;
}

#catalogo > .grid > div > .group:hover {
  border-color: hsl(var(--primary) / .55) !important;
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 60px hsl(220 50% 2% / .62), 0 0 0 1px hsl(var(--primary) / .12) !important;
}

#catalogo > .grid > div > .group > div:first-child {
  aspect-ratio: 16 / 10 !important;
  border-bottom: 1px solid hsl(var(--border));
}

#catalogo > .grid > div > .group > div:first-child > img {
  filter: saturate(.94) contrast(1.03);
}

#catalogo > .grid > div > .group:hover > div:first-child > img {
  filter: saturate(1.08) contrast(1.05);
}

#catalogo span.absolute.left-3 {
  border-radius: .25rem !important;
  box-shadow: 0 6px 18px hsl(220 40% 2% / .45);
}

#catalogo span.absolute.right-3 {
  border: 1px solid hsl(0 0% 100% / .12);
  border-radius: .25rem !important;
  color: hsl(var(--foreground)) !important;
  background: hsl(220 28% 5% / .88) !important;
}

#catalogo .group > .p-5 {
  padding: 1.35rem !important;
}

#catalogo h3 {
  font-size: 1.05rem !important;
  letter-spacing: 0 !important;
}

#catalogo h3 + div span {
  border: 1px solid hsl(var(--border));
  border-radius: .25rem !important;
  background: hsl(var(--secondary)) !important;
}

#catalogo .group .border-t > span:first-child {
  color: hsl(155 72% 48%) !important;
}

/* Testimonials */
#catalogo + section {
  position: relative;
  overflow: hidden;
  padding-top: 6rem !important;
  padding-bottom: 7rem !important;
  border-color: hsl(var(--border)) !important;
  background:
    linear-gradient(180deg, hsl(220 20% 7%), hsl(220 24% 5%)) !important;
}

#catalogo + section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / .7), transparent);
}

#catalogo + section > .container > .mb-10 {
  margin-bottom: 3rem !important;
}

#catalogo + section > .container > .grid {
  gap: 1.25rem !important;
}

#catalogo + section > .container > .grid > .group {
  border-radius: .5rem !important;
  border-color: hsl(var(--border)) !important;
  background: hsl(var(--card)) !important;
  box-shadow: 0 14px 42px hsl(220 50% 2% / .38) !important;
}

#catalogo + section > .container > .grid > .group:hover {
  border-color: hsl(var(--primary) / .45) !important;
  transform: translateY(-4px);
}

#catalogo + section > .container > .grid > .group img {
  filter: saturate(.88) contrast(1.04);
  transition: filter .3s ease, transform .5s ease;
}

#catalogo + section > .container > .grid > .group:hover img {
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.025);
}

/* Footer and social buttons */
footer {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
  border-color: hsl(var(--border)) !important;
  background: hsl(220 28% 4%) !important;
}

footer img {
  filter: drop-shadow(0 10px 22px hsl(var(--primary) / .2));
}

body > div a[href*="instagram.com"],
body > div a[href*="wa.me"] {
  width: 3.25rem !important;
  height: 3.25rem !important;
  border: 1px solid hsl(0 0% 100% / .18);
  box-shadow: 0 14px 34px hsl(220 40% 2% / .48) !important;
}

/* Focus, motion and smaller screens */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 3px;
}

@media (max-width: 767px) {
  header.sticky > .container {
    min-height: 66px;
    padding-top: .65rem !important;
    padding-bottom: .65rem !important;
  }

  header.sticky img[alt="Auto Car"] {
    width: 2.65rem !important;
    height: 2.65rem !important;
  }

  header.sticky + section {
    min-height: 690px !important;
    align-items: flex-end !important;
  }

  header.sticky + section > img {
    object-position: 62% center;
  }

  header.sticky + section > img + div {
    background:
      linear-gradient(180deg, hsl(220 28% 4% / .34), hsl(220 28% 4% / .2) 30%, hsl(220 28% 4% / .94) 78%, hsl(220 28% 4%) 100%) !important;
  }

  header.sticky + section > .relative {
    padding: 7rem 1.25rem 3.25rem !important;
  }

  header.sticky + section h1 {
    font-size: clamp(2.75rem, 13vw, 4rem) !important;
  }

  header.sticky + section p {
    font-size: .98rem !important;
  }

  header.sticky + section .mt-14 {
    margin-top: 2rem !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem !important;
  }

  header.sticky + section .mt-14 > div {
    min-height: 64px;
    padding: .55rem .35rem;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  header.sticky + section .mt-14 span {
    font-size: .6rem !important;
  }

  #catalogo,
  #catalogo + section {
    padding-top: 4.5rem !important;
    padding-bottom: 5rem !important;
  }

  #catalogo > .mb-8 {
    padding: .5rem;
  }

  #catalogo select {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}