/* ---------------------------------------------------------
   RP Estética Automotiva — tokens
--------------------------------------------------------- */
:root {
  --ink: #0a0f1a;
  --ink-2: #0d1322;
  --panel: #131b2c;
  --panel-2: #1a2338;
  --hairline: #26314a;
  --steel: #aab4c8;
  --steel-dim: #6c7891;
  --chrome: #f3f5f8;
  --signal: #4f6488;
  --signal-light: #7d93b8;
  --signal-dim: #34455f;
  --on-signal: #f3f5f8;
  --gold: #c9a15a;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--chrome);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html, body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--chrome);
}

/* ---------------------------------------------------------
   Focus visibility
--------------------------------------------------------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--signal);
  color: var(--on-signal);
}
.btn-primary:hover { background: var(--signal-light); }
.btn-ghost {
  background: transparent;
  color: var(--chrome);
  border-color: var(--hairline);
}
.btn-ghost:hover { border-color: var(--steel); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 15, 26, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}
.brand img { height: 34px; width: auto; flex: none; filter: brightness(0) invert(1); }
.brand-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--chrome);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header .btn { flex: none; }
.header-phones {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--steel);
}
.header-phones a { text-decoration: none; }
.header-phones a:hover { color: var(--chrome); }

@media (max-width: 760px) {
  .header-phones { display: none; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brand-name { font-size: 16px; }
  .contact-card, .contact-cta { padding: 24px; }
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(8,12,22,0.55) 0%, rgba(8,12,22,0.65) 40%, var(--ink) 96%),
    linear-gradient(90deg, rgba(8,12,22,0.92) 0%, rgba(8,12,22,0.35) 55%),
    url("assets/hero-topo.jpg");
  background-size: cover;
  background-position: center 30%;
}
.hero-ghost {
  position: absolute;
  top: -8%;
  right: -6%;
  width: 62%;
  max-width: 720px;
  opacity: 0.07;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-top: 220px;
  padding-bottom: 76px;
  width: 100%;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--signal);
}
.hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  text-transform: uppercase;
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--signal);
}
.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 18px;
  color: var(--steel);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--steel-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-meta strong { color: var(--chrome); display: block; font-size: 15px; letter-spacing: normal; text-transform: none; font-family: var(--body); }

@media (max-width: 640px) {
  .hero-inner { padding-top: 150px; padding-bottom: 56px; }
  .hero { min-height: 100vh; min-height: 100svh; }
}

/* ---------------------------------------------------------
   Trust strip
--------------------------------------------------------- */
.trust {
  border-bottom: 1px solid var(--hairline);
  background: var(--ink-2);
}
.trust .wrap {
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust p {
  margin: 0;
  font-size: 20px;
  max-width: 46ch;
  color: var(--chrome);
}
.trust-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-tags span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ---------------------------------------------------------
   Section shell
--------------------------------------------------------- */
.section { padding: 96px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  text-transform: uppercase;
  line-height: 1;
}
.section-head p { color: var(--steel); max-width: 42ch; margin: 14px 0 0; }

/* dashboard arc divider — a real gauge motif for an automotive brand */
.gauge-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--hairline);
  margin: 0 0 40px;
}
.gauge-divider svg { flex: none; }
.gauge-divider .line { height: 1px; background: var(--hairline); flex: 1; }

/* ---------------------------------------------------------
   Services carousel
--------------------------------------------------------- */
.carousel-shell { position: relative; }
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 28px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 999px; }

.svc-card {
  scroll-snap-align: start;
  flex: 0 0 300px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.svc-card:hover { border-color: var(--signal-dim); transform: translateY(-3px); }
.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal);
  margin-bottom: 20px;
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-card h3 {
  font-size: 20px;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 8px;
}
.svc-card p {
  color: var(--steel);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.svc-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 18px;
  font-family: var(--mono);
}
.svc-price .now {
  font-size: 26px;
  font-weight: 700;
  color: var(--chrome);
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 4px 10px;
}
.svc-price .was {
  font-size: 14px;
  color: var(--steel-dim);
  text-decoration: line-through;
}
.svc-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,161,90,0.4);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.svc-card .btn { width: 100%; justify-content: center; }

.carousel-nav {
  position: absolute;
  top: 40%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}
.carousel-nav button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--hairline);
  color: var(--chrome);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateX(-16px);
}
.carousel-nav button:last-child { transform: translateX(16px); }
.carousel-nav button:hover { border-color: var(--signal); color: var(--signal); }
.carousel-nav svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .carousel-nav { display: none; }
}

/* ---------------------------------------------------------
   Location / contact
--------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 36px;
}
.contact-card h3 {
  font-size: 22px;
  text-transform: none;
  margin-bottom: 18px;
}
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  color: var(--steel);
}
.contact-row:first-of-type { border-top: none; padding-top: 0; }
.contact-row svg { width: 20px; height: 20px; color: var(--signal); flex: none; margin-top: 2px; }
.contact-row a { text-decoration: none; }
.contact-row a:hover { color: var(--chrome); }
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.social-row a:hover { border-color: var(--signal); color: var(--signal); }
.social-row svg { width: 18px; height: 18px; }

.contact-cta {
  background: linear-gradient(160deg, var(--signal-dim), var(--ink-2) 65%);
  border-radius: 18px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--hairline);
}
.contact-cta h3 { font-size: 26px; text-transform: none; margin-bottom: 10px; }
.contact-cta p { color: var(--chrome); opacity: 0.85; margin: 0 0 26px; }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--steel-dim);
}
.site-footer img { height: 22px; filter: brightness(0) invert(1); opacity: 0.6; }
.footer-brand { display: flex; align-items: center; gap: 10px; }

/* ---------------------------------------------------------
   Reveal on scroll
--------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
