/* ==========================================================================
   Ferrari Comércio de Peças — estilos
   Paleta: laranja sólido + preto + branco (sem rosa, sem degradê)
   ========================================================================== */

:root {
  --orange: #f2701a;
  --orange-dark: #d95e0f;
  --orange-light: #ff9450;
  --orange-tint: #fdece0;
  --black: #1a1a1a;
  --white: #ffffff;
  --bg: #faf9f7;
  --gray-50: #f5f4f2;
  --gray-100: #efeeec;
  --gray-300: #d8d6d2;
  --gray-500: #8a8781;
  --gray-700: #4d4b47;
  --text-dark: #1a1a1a;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(26, 26, 26, 0.08);
  --shadow-strong: 0 20px 45px rgba(26, 26, 26, 0.14);
  --max-width: 1180px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

section {
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}

/* ---------- Heading pattern: barra + duas linhas ---------- */
.tag-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.tag-heading .bar {
  width: 6px;
  min-height: 46px;
  border-radius: 4px;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 4px;
}

.tag-heading-pre {
  display: block;
  font-size: 1.15rem;
  color: var(--gray-700);
  font-weight: 500;
  line-height: 1.3;
}

.tag-heading-main {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: var(--black);
}

.tag-sub {
  color: var(--gray-700);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.6;
}

.section-head {
  margin-bottom: 44px;
}

.section-head.centered {
  text-align: center;
}

.section-head.centered .tag-heading {
  justify-content: center;
}

.section-head.centered .tag-sub {
  margin: 0 auto;
}

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

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal-delay-0.in-view {
  transition-delay: 0s;
}

.reveal-delay-1.in-view {
  transition-delay: 0.12s;
}

.reveal-delay-2.in-view {
  transition-delay: 0.24s;
}

.reveal-delay-3.in-view {
  transition-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

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

/* Sem animação de hover nestes botões específicos (pedido do cliente) */
.no-hover-fx:hover {
  transform: none;
}

.no-hover-fx.btn-primary::before {
  display: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(242, 112, 26, 0.35);
}

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

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--black);
  background: var(--gray-50);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: var(--bg);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
  padding: 12px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.brand-text {
  line-height: 1.1;
  flex-shrink: 0;
}

.brand-text small {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
  display: block;
  margin-top: 2px;
}

/* Logo "Ferrari" (imagem oficial). mix-blend-mode "come" o fundo branco do
   arquivo, deixando só o desenho preto/laranja sobre o fundo da seção. */
.ferrari-logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: none;
  aspect-ratio: 842 / 165;
  flex-shrink: 0;
}

.ferrari-logo-img--lg {
  height: clamp(64px, 9vw, 110px);
  margin-bottom: 18px;
}

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

.nav-links a {
  position: relative;
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 1;
  min-width: 0;
}

#headerWhatsapp {
  padding: 8px 16px;
  font-size: 0.8rem;
  gap: 6px;
}

#headerWhatsapp svg {
  width: 15px;
  height: 15px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg);
  padding: 180px 0 110px;
}


.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 14px 0 22px;
  color: var(--black);
}

.hero p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin: 0 0 36px;
  max-width: 560px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.hero-stats div strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--orange);
}

.hero-stats div span {
  font-size: 0.85rem;
  color: var(--gray-700);
}

/* ---------- Quem somos ---------- */
.quem-somos {
  background: var(--bg);
}

.quem-somos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.quem-somos-text p {
  color: var(--gray-700);
  line-height: 1.75;
  margin: 0 0 18px;
}

.quem-somos-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-strong);
}

.quem-somos-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quem-somos-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-tint);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.badge svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
}

/* ---------- Missão / Visão / Valores ---------- */
.mvv {
  background: var(--bg);
}

.mvv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.mvv-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.mvv-card .tag-heading-main {
  font-size: 1.6rem;
}

.mvv-card p {
  color: var(--gray-700);
  line-height: 1.7;
  margin: 0;
}

.valores-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.valores-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.valores-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.valores-list li:hover {
  transform: translateY(-3px);
  background: var(--orange-tint);
}

.valores-list li .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.valores-list li:hover .dot {
  transform: rotate(360deg);
}

.valores-list li .dot svg {
  width: 11px;
  height: 11px;
  color: var(--white);
}

/* ---------- Serviços ---------- */
.servicos {
  background: var(--bg);
}

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

.servico-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.servico-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.servico-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.servico-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.servico-card p {
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Horário ---------- */
.horario {
  background: var(--bg);
}

.horario-card {
  max-width: 520px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-soft);
}

.horario-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.horario-row:last-child {
  border-bottom: none;
}

.horario-row .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.horario-row .icon svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.horario-row div span {
  display: block;
  color: var(--gray-700);
  font-size: 0.85rem;
}

.horario-row div strong {
  font-size: 1.05rem;
  color: var(--black);
}

/* ---------- Unidades ---------- */
.unidades {
  background: var(--bg);
}


.unidades-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.unidade-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.unidade-item.open,
.unidade-item:hover {
  box-shadow: var(--shadow-strong);
}

.unidade-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.unidade-toggle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 12px 22px 26px;
  background: none;
  border: none;
  transition: background 0.2s ease;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.unidade-toggle:hover {
  background: var(--orange-tint);
}

.unidade-quick-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.unidade-quick-contact:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.unidade-quick-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.unidade-toggle .head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.unidade-toggle h3 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--black);
}

.uf-pill {
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

.unidade-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--orange);
  transition: transform 0.3s ease;
}

.unidade-item.open .unidade-chevron {
  transform: rotate(180deg);
}

.unidade-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.unidade-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  padding: 0 26px 30px;
}

.unidade-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 260px;
}

.unidade-map iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}

.unidade-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.unidade-razao {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gray-500);
  font-style: italic;
}

.unidade-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.unidade-info div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.unidade-info svg {
  width: 19px;
  height: 19px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.unidade-content .btn {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---------- Contato / Footer ---------- */
.contato {
  background: linear-gradient(rgba(242, 112, 26, 0.88), rgba(217, 88, 15, 0.92)),
    url("../assets/foto-fachada-2.jpg") center / cover no-repeat;
  color: var(--white);
}

.contato-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contato-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.contato-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  line-height: 1.6;
}

.contato-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contato .btn-primary {
  background: var(--black);
  box-shadow: none;
}

.contato .btn-primary:hover {
  background: #000;
}

.contato .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

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

footer.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 32px 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner a {
  color: var(--white);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .quem-somos-grid {
    grid-template-columns: 1fr;
  }

  .quem-somos-grid .quem-somos-photo {
    order: 2;
  }

  .mvv-grid {
    grid-template-columns: 1fr;
  }

  .valores-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .servicos-grid {
    grid-template-columns: 1fr;
  }

  .unidade-panel-inner {
    grid-template-columns: 1fr;
  }

  .contato-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 140px 0 80px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
  }

  .hero-stats div strong {
    font-size: 1.4rem;
  }

  .hero-stats div span {
    font-size: 0.75rem;
  }

  .valores-list {
    grid-template-columns: 1fr;
  }

  .contato-actions {
    width: 100%;
  }

  .contato-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .unidade-toggle {
    padding-right: 6px;
  }

  .unidade-toggle h3 {
    font-size: 1.02rem;
  }

  .unidade-quick-contact {
    margin-right: 12px;
    padding: 10px 12px;
  }

  .unidade-quick-contact span {
    display: none;
  }

  #headerWhatsapp {
    padding: 10px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
  }

  #headerWhatsapp span {
    display: none;
  }

  #headerWhatsapp svg {
    width: 17px;
    height: 17px;
  }
}
