/* ============================================
   Auto Mecânica Ponto Novo — Design System
   ============================================ */

:root {
  --black: #0b0c0f;
  --charcoal: #14161b;
  --charcoal-2: #1c1f26;
  --white: #ffffff;
  --off-white: #f6f6f8;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --red: #e2141f;
  --red-dark: #ad0f18;
  --red-light: #ff3b47;
  --amber: #ffb703;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --border: #e5e7eb;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-off {
  background: var(--off-white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.5px;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-size: 20px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 14px;
}

.section-dark .section-head p {
  color: var(--muted-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 24px -8px rgba(226, 20, 31, 0.55);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 16px 30px -8px rgba(226, 20, 31, 0.65);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 12px 24px -8px rgba(37, 211, 102, 0.55);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-outline-dark:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.header.scrolled {
  background: rgba(11, 12, 15, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  background: var(--white);
  padding: 3px;
}

.brand-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--muted-light);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--black);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  transform: scale(1.05);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 15, 0.55) 0%, rgba(11, 12, 15, 0.75) 55%, var(--black) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-badge .stars {
  color: var(--amber);
  display: flex;
  gap: 2px;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  max-width: 820px;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red-light);
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 48px;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--white);
}

.hero-stat span {
  font-size: 13px;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-cue::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 4px;
  animation: scrollcue 1.8s infinite;
}

@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--red);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.service-card h3 {
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Diferenciais ---------- */
.diff-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.diff-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.diff-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diff-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(11, 12, 15, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.diff-card .stars {
  color: var(--amber);
  display: flex;
  gap: 3px;
}

.diff-card svg {
  width: 16px;
  height: 16px;
}

.diff-card strong {
  font-family: var(--font-display);
  font-size: 20px;
  display: block;
}

.diff-card span {
  font-size: 12px;
  color: var(--muted-light);
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 34px;
}

.diff-item {
  display: flex;
  gap: 18px;
}

.diff-item .num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--red);
  border: 2px solid var(--red);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diff-item h3 {
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.diff-item p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ---------- Reviews ---------- */
.reviews {
  text-align: center;
  position: relative;
}

.review-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.review-score .big {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 110px);
  line-height: 1;
  color: var(--white);
}

.review-score .stars {
  color: var(--amber);
  display: flex;
  gap: 6px;
}

.review-score .stars svg {
  width: 26px;
  height: 26px;
}

.review-score p {
  color: var(--muted-light);
  font-size: 15px;
}

.review-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 40px 0 44px;
}

.review-badge {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px 26px;
  min-width: 170px;
}

.review-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  margin-bottom: 4px;
}

.review-badge span {
  font-size: 13px;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Location ---------- */
.location-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.location-map {
  position: relative;
  min-height: 460px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  inset: 0;
}

.location-info {
  background: var(--black);
  color: var(--white);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}

.location-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.location-row .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-row .ico svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.location-row h3 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  margin-bottom: 4px;
}

.location-row p, .location-row a {
  color: var(--muted-light);
  font-size: 14.5px;
}

.location-row a:hover {
  color: var(--white);
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.contact-card:hover {
  transform: translateX(6px);
  border-color: var(--red);
}

.contact-card .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card .ico svg {
  width: 22px;
  height: 22px;
  color: var(--white);
}

.contact-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-card span {
  font-size: 14px;
  color: var(--muted);
}

.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 42px;
}

.contact-form h3 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 22px;
  margin-bottom: 6px;
}

.contact-form > p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 20, 31, 0.12);
}

.form-note {
  font-size: 12.5px;
  color: var(--muted-light);
  margin-top: 12px;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: var(--muted-light);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand img {
  height: 40px;
  border-radius: 8px;
  background: var(--white);
  padding: 3px;
}

.footer-brand span {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: var(--red-light);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 300;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  animation: pulse 3s infinite;
}

.wa-float:hover {
  background: var(--whatsapp-dark);
  border-color: transparent;
  transform: translateY(-2px);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  color: var(--whatsapp);
  transition: color 0.25s ease;
}

.wa-float:hover svg {
  color: var(--white);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.25), var(--shadow-lg); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), var(--shadow-lg); }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-wrap { grid-template-columns: 1fr; }
  .diff-media { max-width: 460px; margin: 0 auto; }
  .location-wrap { grid-template-columns: 1fr; }
  .location-map { min-height: 340px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 24px; }
}

@media (max-width: 860px) {
  .nav-links, .header-phone { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    z-index: 205;
  }

  .nav-links.open a {
    font-size: 20px;
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(4) { grid-column: span 1; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}
