/* ==========================================================================
   EIRAS AUTO — Design tokens
   Palette: deep ink black + muted brass gold + oxblood accent + warm ivory
   Type: Fraunces (display serif) / Manrope (body) / Space Mono (spec data)
   Signature: the "coachline" — a tapered gold pinstripe, drawn like the
   hand-painted line on a coachbuilt car body. Used as divider, underline,
   and hero flourish. The logo mark itself keeps its own brand colors.
   ========================================================================== */

:root{
  --ink: #0a0a0c;
  --ink-2: #0d0d10;
  --panel: #131316;
  --panel-raised: #1c1a18;
  --gold: #c7a253;
  --gold-bright: #e8c976;
  --gold-dim: #8a723c;
  --oxblood: #6e2a34;
  --oxblood-bright: #8f3947;
  --alert: #e0554a;
  --ivory: #f4f1e8;
  --stone: #a6a29a;
  --stone-dim: #706c64;
  --hairline: rgba(199,162,83,0.16);
  --hairline-strong: rgba(199,162,83,0.32);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{ margin: 0; font-family: var(--font-display); font-weight: 500; color: var(--ivory); }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select{ font-family: inherit; }

::selection{ background: var(--gold-dim); color: var(--ink); }

:focus-visible{
  outline: 1.5px solid var(--gold-bright);
  outline-offset: 3px;
}

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

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

/* ---------- Coachline: the signature element ---------- */
.coachline{
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.coachline path{
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.coachline.animate path{
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-line 1.6s var(--ease) 0.35s forwards;
}
@keyframes draw-line{ to{ stroke-dashoffset: 0; } }

.divider{
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong) 20%, var(--hairline-strong) 80%, transparent);
  margin: 0;
}

/* ---------- Reusable section background media ---------- */
.section-with-media{ position: relative; overflow: hidden; }
.section-with-media .wrap{ position: relative; z-index: 1; }
.section-media{ position: absolute; inset: 0; z-index: 0; }
.section-media img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(20%) brightness(0.3);
}
.section-media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.72) 0%, rgba(10,10,12,0.85) 100%);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,12,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.emblem{
  display: flex;
  align-items: center;
  gap: 12px;
}
.emblem-name{
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--ivory);
  line-height: 1.1;
}
.emblem-name-auto{ color: var(--gold-bright); }
.emblem-name small{
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--stone-dim);
  margin-top: 3px;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 40px;
}
.main-nav ul{ display: flex; gap: 32px; }
.main-nav a{
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--stone);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"]{ color: var(--ivory); }
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after{ right: 0; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn-solid{
  background: #8a6a35;
  color: #ffffff;
}
.btn-solid:hover{ background: #9c7a3e; border-color: #9c7a3e; }
.btn-ghost{
  background: transparent;
  color: var(--ivory);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-bright); }

.main-nav .btn-ghost{ border: none; }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg{ width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(15%) brightness(0.62);
  transform: scale(1.02);
}
.hero-media::after{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.35) 0%, rgba(10,10,12,0.55) 55%, var(--ink) 96%),
    linear-gradient(90deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.05) 45%);
}
.hero-content{
  position: relative;
  z-index: 1;
  padding: 120px 0 84px;
  width: 100%;
}
.hero-content .eyebrow{ margin-bottom: 22px; display: block; }
.hero-title{
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  line-height: 1.02;
  max-width: 15ch;
  letter-spacing: -0.01em;
}
.hero-title em{
  font-style: italic;
  color: var(--gold-bright);
}
.hero-coachline{ max-width: 340px; margin: 28px 0 30px; }
.hero-sub{
  max-width: 44ch;
  color: var(--stone);
  font-size: 17px;
  margin-bottom: 40px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats{
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  background: rgba(10,10,12,0.55);
}
.hero-stats .wrap{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat{
  padding: 26px 0;
  border-left: 1px solid var(--hairline);
  padding-left: 28px;
}
.stat:first-child{ border-left: none; padding-left: 0; }
.stat b{
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--gold-bright);
  letter-spacing: -0.01em;
}
.stat span{
  display: block;
  font-size: 12.5px;
  color: var(--stone-dim);
  margin-top: 4px;
}

/* ---------- Sections ---------- */
section{ padding: 118px 0; }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head h2{
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-top: 14px;
  max-width: 16ch;
}
.section-head p{
  max-width: 34ch;
  color: var(--stone);
  font-size: 15px;
  padding-bottom: 6px;
}

/* ---------- Featured cards ---------- */
.car-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.car-card{
  background: var(--ink);
  display: flex;
  flex-direction: column;
}
.car-photo{
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.car-photo img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: saturate(0.92) brightness(0.92);
}
.car-card:hover .car-photo img{ transform: scale(1.055); filter: saturate(1) brightness(1); }
.car-tag{
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(10,10,12,0.72);
  border: 1px solid var(--hairline-strong);
  color: var(--gold-bright);
  padding: 6px 10px;
}
.car-body{
  padding: 26px 28px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.car-body h3{ font-size: 21px; margin-bottom: 4px; }
.car-body h3 a:hover{ color: var(--gold-bright); }
.car-specs{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--stone-dim);
  letter-spacing: 0.03em;
  margin: 12px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.car-specs span{ white-space: nowrap; }
.car-specs span::before{ content: "· "; color: var(--gold-dim); }
.car-specs span:first-child::before{ content: ""; }
.car-foot{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.car-price{
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--gold-bright);
}
.car-link{
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.car-link:hover{ color: var(--gold-bright); gap: 10px; }

/* ---------- Values ---------- */
.values{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.value-item{ padding-top: 24px; border-top: 1px solid var(--hairline-strong); }
.value-item svg{ width: 26px; height: 26px; color: var(--gold); margin-bottom: 20px; }
.value-item h3{ font-size: 18px; margin-bottom: 10px; }
.value-item p{ color: var(--stone); font-size: 14.5px; }

/* ---------- Testimonials ---------- */
.testimonials{ background: var(--panel); }
.testi-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.testi-card{
  background: var(--panel);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.testi-mark{ font-family: var(--font-display); font-size: 44px; color: var(--oxblood-bright); line-height: 1; margin-bottom: 10px; }
.testi-quote{ font-size: 15px; color: var(--ivory); flex: 1; margin-bottom: 26px; }
.testi-who{ display: flex; align-items: center; gap: 12px; }
.testi-avatar{
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--gold-bright);
  flex-shrink: 0;
}
.testi-name{ font-size: 13.5px; }
.testi-car{ font-size: 12px; color: var(--stone-dim); }

/* ---------- CTA band ---------- */
.cta-band{
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.cta-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-media img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(25%) brightness(0.32);
}
.cta-media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.7), rgba(10,10,12,0.82));
}
.cta-band .wrap{ position: relative; z-index: 1; }
.cta-band h2{ font-size: clamp(2rem, 4vw, 3.1rem); max-width: 18ch; margin: 0 auto 30px; }
.cta-band .coachline{ max-width: 280px; margin: 0 auto 28px; }
.cta-actions{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer{ padding: 80px 0 34px; }
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-about p{ color: var(--stone); font-size: 14px; margin-top: 18px; max-width: 34ch; }
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-dim);
  margin-bottom: 18px;
}
.footer-col li{ margin-bottom: 11px; }
.footer-col a{ color: var(--stone); font-size: 14px; transition: color 0.25s var(--ease); }
.footer-col a:hover{ color: var(--gold-bright); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--stone-dim);
}
.footer-social{ display: flex; gap: 18px; }

/* ---------- Mobile nav drawer ---------- */
.mobile-drawer{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-drawer.is-open{ transform: translateX(0); }
.mobile-drawer-top{ display: flex; justify-content: flex-end; margin-bottom: 60px; }
.mobile-drawer nav ul{ display: flex; flex-direction: column; gap: 26px; }
.mobile-drawer nav a{ font-family: var(--font-display); font-size: 30px; }
.mobile-drawer .btn{ margin-top: 50px; align-self: flex-start; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  position: relative;
  overflow: hidden;
  padding: 100px 0 64px;
  border-bottom: 1px solid var(--hairline);
}
.page-hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-media img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(20%) brightness(0.4);
}
.page-hero-media::after{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.8) 65%, var(--ink) 100%),
    radial-gradient(ellipse 900px 400px at 15% 0%, rgba(199,162,83,0.12), transparent 60%);
}
.page-hero .wrap{ position: relative; z-index: 1; }
.page-hero .eyebrow{ display:block; margin-bottom: 16px; }
.page-hero h1{ font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 18ch; }
.page-hero p{ color: var(--stone); max-width: 48ch; margin-top: 18px; font-size: 15.5px; }

/* ---------- Inventory / filters ---------- */
.filter-bar{
  position: sticky;
  top: 84px;
  z-index: 40;
  background: rgba(19,19,22,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.filter-bar .wrap{
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.filter-group{ display: flex; flex-direction: column; gap: 6px; }
.filter-group label{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-dim);
}
.filter-group select{
  background: var(--panel);
  border: 1px solid var(--hairline-strong);
  color: var(--ivory);
  padding: 10px 34px 10px 12px;
  font-size: 13.5px;
  border-radius: var(--radius);
  min-width: 150px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7a253' stroke-width='1.6'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}
.filter-group select:focus{ border-color: var(--gold); outline: none; }
.filter-reset{
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--stone);
  background: none;
  border: 1px solid var(--hairline-strong);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.filter-reset:hover{ border-color: var(--gold); color: var(--gold-bright); }

.result-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
}
.result-row span{ font-family: var(--font-mono); font-size: 12.5px; color: var(--stone-dim); }
.result-row b{ color: var(--gold-bright); }

.inventory-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.empty-state{
  display: none;
  text-align: center;
  padding: 80px 20px;
  color: var(--stone);
  border: 1px dashed var(--hairline-strong);
}
.empty-state h3{ font-size: 20px; margin-bottom: 10px; color: var(--ivory); }

@media (max-width: 980px){
  .inventory-grid{ grid-template-columns: repeat(2,1fr); }
  .filter-bar{ top: 0; }
}
@media (max-width: 700px){
  .inventory-grid{ grid-template-columns: 1fr; }
  .filter-bar .wrap{ gap: 12px; }
  .filter-group select{ min-width: 130px; }
}

/* ---------- Split / manifesto (Sobre) ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-media{
  aspect-ratio: 5/6;
  overflow: hidden;
  position: relative;
}
.split-media img{ width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.9); }
.split-media::before{
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--hairline-strong);
  pointer-events: none;
}
.pull-quote{
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.42;
  color: var(--ivory);
}
.split .eyebrow{ display: block; margin-bottom: 18px; }
.split-body p{ color: var(--stone); font-size: 15px; margin-top: 22px; }
.split-body .pull-quote{ margin-bottom: 6px; }

/* ---------- Timeline (genuinely chronological — Sobre) ---------- */
.timeline{
  position: relative;
  padding-left: 100px;
}
.timeline::before{
  content: "";
  position: absolute;
  left: 62px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--hairline-strong);
}
.timeline-item{
  position: relative;
  padding-bottom: 52px;
}
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-year{
  position: absolute;
  left: -100px;
  top: 0;
  width: 62px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-bright);
}
.timeline-item::before{
  content: "";
  position: absolute;
  left: -41px;
  top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--gold);
}
.timeline-item h3{ font-size: 18px; margin-bottom: 8px; }
.timeline-item p{ color: var(--stone); font-size: 14.5px; max-width: 52ch; }

@media (max-width: 860px){
  .split{ grid-template-columns: 1fr; gap: 40px; }
  .timeline{ padding-left: 70px; }
  .timeline-year{ left: -70px; width: 48px; font-size: 11.5px; }
  .timeline-item::before{ left: -30px; }
}

/* ---------- Contact page ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.contact-form-panel, .contact-info-panel{ background: var(--ink); padding: 48px; }
.contact-info-panel{ background: var(--panel); display: flex; flex-direction: column; gap: 34px; }
.form-field{ margin-bottom: 22px; }
.form-field label{
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-dim);
  margin-bottom: 9px;
}
.form-field input, .form-field textarea{
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--hairline-strong);
  color: var(--ivory);
  padding: 13px 14px;
  font-size: 14.5px;
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease);
}
.form-field input:focus, .form-field textarea:focus{ border-color: var(--gold); outline: none; }
.form-field textarea{ resize: vertical; min-height: 130px; }
.form-note{ font-size: 12px; color: var(--stone-dim); margin-top: -8px; margin-bottom: 24px; }
.form-feedback{ font-size: 13px; color: var(--gold-bright); min-height: 20px; margin-top: 4px; }
.form-feedback.is-error{ color: var(--alert); }

.info-block h4{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.info-block p, .info-block a{ font-size: 15px; color: var(--ivory); line-height: 1.7; }
.info-block .stone{ color: var(--stone); font-size: 13.5px; }

.map-frame{
  border: 1px solid var(--hairline-strong);
  filter: grayscale(0.4) invert(0.92) contrast(0.88);
  width: 100%;
  height: 260px;
}

/* ---------- Car detail page (viatura.html) ---------- */
.back-link{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone);
  transition: color 0.25s var(--ease);
}
.back-link:hover{ color: var(--gold-bright); }

.car-detail-hero{
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.car-detail-hero img{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(10%) brightness(0.6);
}
.car-detail-hero::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.25) 0%, rgba(10,10,12,0.6) 55%, var(--ink) 97%);
}
.car-detail-content{
  position: relative;
  z-index: 1;
  padding: 90px 0 56px;
  width: 100%;
}
.car-detail-title{
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin-top: 10px;
  max-width: 20ch;
}
.car-detail-price{
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--gold-bright);
  margin-top: 18px;
}

.spec-sheet{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin: 8px 0 64px;
}
.spec-item{
  background: var(--ink);
  padding: 26px 28px;
}
.spec-item .label{
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-dim);
  margin-bottom: 10px;
}
.spec-item .value{
  font-family: var(--font-mono);
  font-size: 21px;
  color: var(--ivory);
}

.car-detail-body{ max-width: 62ch; margin-bottom: 48px; }
.car-detail-description{ color: var(--stone); font-size: 16px; margin-top: 16px; line-height: 1.75; }
.car-detail-actions{ display: flex; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; }

.car-tag-sold{
  background: rgba(110,42,52,0.85);
  border-color: var(--oxblood-bright);
  color: var(--ivory);
}
.car-card.is-sold .car-photo img{ filter: grayscale(70%) brightness(0.55); }

.car-gallery-thumbs{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.car-gallery-thumb{
  flex: 0 0 auto;
  width: 96px;
  height: 68px;
  padding: 0;
  border: 1.5px solid var(--hairline-strong);
  background: var(--panel);
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), opacity 0.25s var(--ease);
  opacity: 0.6;
}
.car-gallery-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.car-gallery-thumb:hover{ opacity: 0.85; }
.car-gallery-thumb.is-active{ border-color: var(--gold); opacity: 1; }

@media (max-width: 700px){
  .spec-sheet{ grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Gestão (login + painel do dono) ---------- */
.auth-shell{
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.auth-card{
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--hairline-strong);
  padding: 42px 36px;
}
.auth-card h1{ font-size: 24px; margin-bottom: 8px; }
.auth-card p{ color: var(--stone); font-size: 14px; margin-bottom: 28px; }
.auth-error{ color: var(--alert); font-size: 13px; margin-top: 14px; min-height: 18px; }

.gestao-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 14px;
}
.gestao-topbar span{ font-family: var(--font-mono); font-size: 12.5px; color: var(--stone); }

.gestao-section-title{ margin-bottom: 22px; }
.gestao-section-title h2{ font-size: 22px; }
.gestao-section-title p{ color: var(--stone); font-size: 14px; margin-top: 8px; }

.gestao-form{
  background: var(--panel);
  border: 1px solid var(--hairline-strong);
  padding: 32px;
  margin-bottom: 64px;
}
.gestao-form-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 22px;
}
.gestao-form-grid .form-field{ margin-bottom: 0; }
.gestao-form-grid .span-2{ grid-column: span 2; }
.gestao-form-grid .span-3{ grid-column: span 3; }

.file-drop{
  border: 1.5px dashed var(--hairline-strong);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  color: var(--stone);
  font-size: 13.5px;
  transition: border-color 0.25s var(--ease);
}
.file-drop:hover{ border-color: var(--gold); }
.file-drop input{ display: none; }
.file-preview{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.file-preview img{ width: 64px; height: 48px; object-fit: cover; border: 1px solid var(--hairline-strong); }

.gestao-list{ display: flex; flex-direction: column; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.gestao-row{
  background: var(--ink);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  flex-wrap: wrap;
}
.gestao-row-thumb{ width: 84px; height: 60px; object-fit: cover; flex-shrink: 0; background: var(--panel); }
.gestao-row-info{ flex: 1; min-width: 200px; }
.gestao-row-info h4{ font-size: 15.5px; font-weight: 600; }
.gestao-row-info span{ font-family: var(--font-mono); font-size: 12px; color: var(--stone-dim); }
.gestao-row-actions{ display: flex; gap: 10px; flex-wrap: wrap; }

.btn-small{ padding: 8px 14px; font-size: 12px; }
.btn-danger{ border-color: var(--alert); color: var(--alert); }
.btn-danger:hover{ background: var(--alert); color: var(--ink); }
.btn-toggle-sold.is-sold{ border-color: var(--stone-dim); color: var(--stone); }

.form-msg{ font-size: 13px; margin-top: 16px; min-height: 18px; }
.form-msg.is-error{ color: var(--alert); }
.form-msg.is-ok{ color: var(--gold-bright); }

@media (max-width: 760px){
  .gestao-form-grid{ grid-template-columns: 1fr 1fr; }
  .gestao-form-grid .span-2, .gestao-form-grid .span-3{ grid-column: span 2; }
}
@media (max-width: 500px){
  .gestao-form-grid{ grid-template-columns: 1fr; }
  .gestao-form-grid .span-2, .gestao-form-grid .span-3{ grid-column: span 1; }
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.whatsapp-float:hover{ transform: scale(1.08); background: var(--gold-bright); }
.whatsapp-float svg{ width: 26px; height: 26px; }
@media (max-width: 600px){
  .whatsapp-float{ right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .whatsapp-float svg{ width: 23px; height: 23px; }
}

/* ---------- Etiqueta "Novo" ---------- */
.car-tag-new{
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  padding: 6px 10px;
  font-weight: 700;
}

/* ---------- Ordenar catálogo ---------- */
.sort-group{ margin-left: auto; }
@media (max-width: 980px){ .sort-group{ margin-left: 0; } }

/* ---------- Vender / retomar o meu carro ---------- */
.sell-section{ background: var(--panel); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.sell-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.sell-grid .form-field input, .sell-grid .form-field select, .sell-grid .form-field textarea{ background: var(--ink); }
.sell-intro h2{ font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 14px; }
.sell-intro p{ color: var(--stone); margin-top: 16px; font-size: 15px; max-width: 42ch; }
.sell-intro ul{ margin-top: 24px; }
.sell-intro li{ display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: var(--stone); font-size: 14px; }
.sell-intro li svg{ width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 860px){ .sell-grid{ grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Serviços (Sobre) ---------- */
.services-row{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.service-item{ background: var(--ink); padding: 30px 26px; }
.service-item h3{ font-size: 17px; margin-bottom: 10px; }
.service-item p{ color: var(--stone); font-size: 14px; }
@media (max-width: 760px){ .services-row{ grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .main-nav ul, .main-nav .btn-ghost, .main-nav .btn-solid{ display: none; }
  .nav-toggle{ display: flex; }
  .car-grid, .testi-grid{ grid-template-columns: 1fr; }
  .values{ grid-template-columns: 1fr; gap: 36px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .hero-stats .wrap{ grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(3){ border-left: none; padding-left: 0; }
  .contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 600px){
  .wrap{ padding: 0 20px; }
  section{ padding: 76px 0; }
  .hero-content{ padding: 100px 0 56px; }
  .section-head{ flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-grid{ grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom{ flex-direction: column; gap: 14px; align-items: flex-start; }
  .contact-form-panel, .contact-info-panel{ padding: 32px 24px; }
}
