
/* ========================================
   RODA RODA - ESTILO COMPLETO DO WEBSITE
   Cores: Preto, vermelho e branco
======================================== */

/* ---------- VARIÁVEIS ---------- */

:root {
  --preto: #17191d;
  --preto-claro: #22252b;
  --vermelho: #e63936;
  --vermelho-escuro: #c92b29;
  --branco: #ffffff;
  --cinzento: #c5c7cb;
  --cinzento-escuro: #383b42;
  --fundo-claro: #f4f4f4;
  --largura-maxima: 1200px;
}

/* ---------- RESET ---------- */

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

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--branco);
  color: var(--preto);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(100% - 40px, var(--largura-maxima));
  margin-inline: auto;
}

.section {
  padding: 90px 0;
}

section[id] {
  scroll-margin-top: 85px;
}

/* ---------- BOTÕES GERAIS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

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

.btn-primary {
  background: var(--vermelho);
  border-color: var(--vermelho);
  color: var(--branco);
}

.btn-primary:hover {
  background: var(--vermelho-escuro);
  border-color: var(--vermelho-escuro);
}

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

.btn-outline:hover {
  background: var(--branco);
  color: var(--preto);
}

/* ---------- CABEÇALHO ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(23, 25, 29, 0.98);
  border-bottom: 2px solid var(--vermelho);
}

.nav-container {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  width: auto;
  max-width: 155px;
  max-height: 58px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.nav a {
  position: relative;
  padding: 8px 0;
  color: var(--branco);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

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

.nav a:hover {
  color: var(--vermelho);
}

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

.nav-container > .btn {
  flex-shrink: 0;
  padding: 11px 15px;
  font-size: 11px;
}

/* ---------- DESTAQUE PRINCIPAL ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 650px;
  padding: 100px 0;
  overflow: hidden;
  background-color: var(--preto);
  background-image: url("imagens/oficina.jpg");
  background-position: center;
  background-size: cover;
  color: var(--branco);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(15, 16, 19, 0.96) 0%,
      rgba(15, 16, 19, 0.82) 48%,
      rgba(15, 16, 19, 0.28) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  margin-bottom: 22px;
  padding-left: 13px;
  border-left: 4px solid var(--vermelho);
  color: var(--branco);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 25px;
  font-size: clamp(42px, 6.5vw, 78px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.hero h1 span,
.sobre-content h2 span,
.cta h2 span {
  color: var(--vermelho);
}

.hero-content > p {
  max-width: 580px;
  margin-bottom: 30px;
  color: #e0e0e0;
  font-size: 17px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- TÍTULOS DAS SECÇÕES ---------- */

.section-header {
  max-width: 720px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  color: var(--vermelho);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
}

.section-header h2,
.sobre-content h2,
.cta h2 {
  margin: 12px 0 16px;
  font-size: clamp(30px, 4vw, 45px);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.section-header h2 span {
  color: var(--vermelho);
}

.section-header p {
  color: #666a70;
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- SERVIÇOS ---------- */

.servicos {
  background: var(--fundo-claro);
}

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

.servico-card {
  padding: 35px 28px;
  background: var(--branco);
  border-bottom: 4px solid transparent;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.servico-card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--vermelho);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

.servico-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  background: var(--vermelho);
  border-radius: 8px;
  color: var(--branco);
  font-size: 29px;
}

.servico-card h3 {
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 800;
}

.servico-card p {
  color: #686b70;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- SOBRE A EMPRESA ---------- */

.sobre {
  background: var(--branco);
}

.sobre-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 65px;
}

.sobre-image {
  position: relative;
  min-width: 0;
}

.sobre-image::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--vermelho);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.sobre-image img {
  position: relative;
  width: 100%;
  min-height: 350px;
  max-height: 470px;
  border-radius: 8px;
  object-fit: cover;
}

.sobre-content {
  min-width: 0;
}

.sobre-content h2 {
  margin: 15px 0 22px;
}

.sobre-content > p {
  margin-bottom: 18px;
  color: #666a70;
  font-size: 15px;
  line-height: 1.9;
}

.sobre-content .btn {
  margin-top: 10px;
}

/* ---------- OFICINAS ---------- */

.oficinas {
  padding: 90px 20px;
  background: var(--preto);
  color: var(--branco);
}

.oficinas .container {
  width: min(100%, var(--largura-maxima));
  margin: 0 auto;
}

.oficinas .section-header p {
  color: var(--cinzento);
}

.oficinas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}

.oficina-card {
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  background: var(--preto-claro);
  border: 1px solid var(--cinzento-escuro);
  border-top: 4px solid var(--vermelho);
  border-radius: 10px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.oficina-card:hover {
  transform: translateY(-4px);
  border-color: var(--vermelho);
}

.oficina-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.oficina-numero {
  color: var(--vermelho);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.oficina-local {
  padding: 7px 12px;
  background: var(--vermelho);
  border-radius: 4px;
  color: var(--branco);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.oficina-card h3 {
  margin-bottom: 22px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
}

.oficina-detalhes {
  display: grid;
  gap: 18px;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}

.oficina-detalhes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #d0d0d0;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.oficina-icone {
  flex-shrink: 0;
  color: var(--vermelho);
}

.oficina-detalhes a {
  color: var(--branco);
  font-weight: 800;
  text-decoration: none;
}

.oficina-detalhes a:hover {
  color: var(--vermelho);
}

.oficina-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-oficina {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 2px solid var(--vermelho);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn-ligar {
  background: var(--vermelho);
  color: var(--branco);
}

.btn-ligar:hover {
  background: var(--vermelho-escuro);
  border-color: var(--vermelho-escuro);
}

.btn-mapa {
  background: transparent;
  color: var(--branco);
}

.btn-mapa:hover {
  background: var(--vermelho);
  color: var(--branco);
}

.oficina-mapa {
  display: block;
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 7px;
  background: #303238;
}

/* ---------- GALERIA ---------- */

.galeria {
  background: var(--fundo-claro);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.galeria-grid a {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #dedede;
  border-radius: 7px;
  aspect-ratio: 4 / 3;
}

.galeria-grid a::after {
  position: absolute;
  inset: 0;
  background: rgba(230, 57, 54, 0);
  content: "";
  transition: background 0.25s ease;
}

.galeria-grid a:hover::after {
  background: rgba(230, 57, 54, 0.2);
}

.galeria-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galeria-grid a:hover img {
  transform: scale(1.07);
}

/* ---------- CHAMADA PARA CONTACTO ---------- */

.cta {
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
  background: var(--preto-claro);
  color: var(--branco);
  text-align: center;
}

.cta::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--vermelho);
  content: "";
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  margin: 16px 0;
}

.cta p {
  margin-bottom: 25px;
  color: var(--cinzento);
  font-size: 16px;
}

/* ---------- CONTACTOS ---------- */

.contactos {
  background: var(--branco);
}

.contactos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.contacto-item {
  padding: 30px;
  background: var(--fundo-claro);
  border-left: 4px solid var(--vermelho);
  border-radius: 5px;
}

.contacto-item h3 {
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 900;
}

.contacto-item p {
  margin-bottom: 5px;
  color: #666a70;
  font-size: 14px;
}

.contacto-item > a {
  display: inline-block;
  margin-top: 15px;
  color: var(--vermelho);
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
}

.contacto-item > a:hover {
  color: var(--vermelho-escuro);
}

/* ---------- RODAPÉ ---------- */

.footer {
  padding: 45px 0 25px;
  background: #101114;
  border-top: 3px solid var(--vermelho);
  color: var(--branco);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.footer-logo {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 8px;
}

.footer-logo img {
  width: auto;
  max-width: 160px;
  max-height: 65px;
  object-fit: contain;
}

.footer-content > p {
  color: var(--cinzento);
  font-size: 13px;
}

.footer-localizacoes {
  font-weight: 800;
  letter-spacing: 1px;
}

.footer-telefones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 25px;
}

.footer-telefones a {
  color: var(--branco);
  font-size: 13px;
  text-decoration: none;
}

.footer-telefones a:hover {
  color: var(--vermelho);
}

.copyright {
  width: 100%;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #303238;
  font-size: 12px !important;
}

/* ---------- TABLETS ---------- */

@media (max-width: 1050px) {
  .nav-container {
    gap: 15px;
  }

  .logo img {
    max-width: 125px;
  }

  .nav {
    gap: 13px;
  }

  .nav a {
    font-size: 11px;
  }

  .nav-container > .btn {
    padding-inline: 12px;
  }

  .sobre-grid {
    gap: 40px;
  }
}

/* ---------- TABLETS PEQUENOS ---------- */

@media (max-width: 850px) {
  .nav-container {
    min-height: 75px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .nav-container > .btn {
    margin-left: auto;
  }

  .hero {
    min-height: 560px;
  }

  .servicos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .sobre-image {
    max-width: 650px;
  }

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

  .oficina-card {
    padding: 25px;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- TELEMÓVEIS ---------- */

@media (max-width: 600px) {
  html {
    scroll-padding-top: 125px;
  }

  section[id] {
    scroll-margin-top: 125px;
  }

  .container {
    width: min(100% - 32px, var(--largura-maxima));
  }

  .section {
    padding: 65px 0;
  }

  .nav-container {
    gap: 12px;
  }

  .logo img {
    max-width: 112px;
    max-height: 48px;
  }

  .nav-container > .btn {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 10px;
  }

  .nav {
    gap: 5px 16px;
  }

  .nav a {
    padding: 5px 0;
    font-size: 10px;
  }

  .hero {
    min-height: 540px;
    padding: 75px 0;
    background-position: 58% center;
  }

  .hero-overlay {
    background: rgba(15, 16, 19, 0.78);
  }

  .hero-tag {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 58px);
    letter-spacing: -1px;
  }

  .hero-content > p {
    font-size: 15px;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2,
  .sobre-content h2,
  .cta h2 {
    font-size: 30px;
  }

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

  .servico-card {
    padding: 27px 23px;
  }

  .sobre-image img {
    min-height: 260px;
  }

  .sobre-image::before {
    top: 10px;
    left: 10px;
  }

  .oficinas {
    padding: 65px 16px;
  }

  .oficinas-grid {
    gap: 22px;
  }

  .oficina-card {
    padding: 20px;
  }

  .oficina-card h3 {
    font-size: 22px;
  }

  .oficina-detalhes li {
    font-size: 13px;
  }

  .oficina-acoes {
    flex-direction: column;
  }

  .btn-oficina {
    width: 100%;
  }

  .oficina-mapa {
    height: 220px;
  }

  .galeria-grid {
    gap: 12px;
  }

  .contactos-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contacto-item {
    padding: 24px;
  }

  .cta {
    padding: 65px 16px;
  }

  .footer-telefones {
    flex-direction: column;
    gap: 10px;
  }
}

/* ---------- TELEMÓVEIS MUITO PEQUENOS ---------- */

@media (max-width: 360px) {
  .logo img {
    max-width: 90px;
  }

  .nav {
    gap: 5px 12px;
  }

  .nav a {
    font-size: 9px;
  }

  .nav-container > .btn {
    font-size: 9px;
    padding-inline: 8px;
  }

  .oficina-card {
    padding: 16px;
  }

  .oficina-local {
    padding: 6px 8px;
    font-size: 9px;
  }
}

/* ---------- ACESSIBILIDADE ---------- */

a:focus-visible {
  outline: 3px solid var(--vermelho);
  outline-offset: 4px;
}

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