/* Reset básico e configurações gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #cc0002;
  --primary-hover: #a30000;
  --secondary-color: #222;
  --light-color: #f8f9fa;
  --dark-color: #000;
  --text-color: #222;
  --bg-color: #f4f4f4;
  --card-bg: #fff;
  --border-color: #cc0002;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(120deg, #f4f4f4 60%, #222 100%);
}

/* Header */
header {
  background: linear-gradient(90deg, #000 70%, #cc0002 100%);
  color: #fff;
  padding: 2.2rem 0 1.2rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#logo-header {
  display: block;
  margin: 0 auto 1rem auto;
  max-width: 1200px;
  height: auto;
  animation: floatLogo 2.8s ease-in-out infinite alternate;
}
@keyframes floatLogo {
  from { transform: translateY(0); }
  to { transform: translateY(-18px); }
}

header h1 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  color: #fff;
}

header p {
  font-size: 1.2rem;
  color: #e0e0e0;
  letter-spacing: 1px;
}

/* Navegação */
nav {
  background: #000;
  border-bottom: 2px solid #cc0002;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 0.8rem;
  text-align: center;
}

nav a {
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.5rem 18px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.1rem;
}

nav a:hover {
  background: #cc0002;
  color: #fff;
}

/* Seções principais */
main {
  padding: 0 20px;
}

section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 48px 24px;
  margin-bottom: 32px;
}

section h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 2.3rem;
  color: #cc0002;
  margin-bottom: 28px;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(204,0,2,0.06);
  text-align: center;
}

section#representadas h2 {
  color: #000;
}

.hero {
  text-align: center;
  background-color: #e9ecef;
}

/* Container das Representadas */
.representadas-container {
  text-align: center;
}

.grid-representadas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.empresa-card {
  background: #fff;
  border: 2px solid #cc0002;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(204,0,2,0.07);
  padding: 28px 18px 22px 18px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empresa-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 24px rgba(204,0,2,0.13);
  border-color: #a30000;
}

.empresa-card img {
  max-width: 300px;
  margin-bottom: 22px;
  border-radius: 8px;
  border: 2px solid #cc0002;
  background: #fff;
}

.empresa-card p {
  font-size: 1.08rem;
  color: #222;
  margin-bottom: 14px;
  text-align: center;
}

.empresa-card a {
  background: #cc0002;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(204,0,2,0.08);
}

.empresa-card a:hover {
  background: #a30000;
}

/* Seções Sobre e Contato */
.sobre-nos {
  background: #fff;
  border: 2px solid #cc0002;
  box-shadow: 0 2px 8px rgba(204,0,2,0.04);
  border-radius: 18px;
  padding: 64px 32px;
  margin-bottom: 36px;
  position: relative;
}

.sobre-nos h2 {
  color: #cc0002;
  font-size: 2.5rem;
  margin-bottom: 36px;
  letter-spacing: 1px;
}

.sobre-nos p {
  font-size: 1.18rem;
  color: #222;
  text-align: justify;
  max-width: none;
  margin: 0 0 18px 0;
  line-height: 1.8;
  position: relative;
  padding: 0 0 0 2.5rem;
  background: none;
  box-shadow: none;
}

.sobre-nos p::before {
  content: '“';
  font-size: 2.5rem;
  color: #cc0002;
  position: absolute;
  left: 0;
  top: -10px;
}

.contato {
  text-align: center;
}
.contato p, .contato a {
  text-align: center !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.contato a {
  color: #cc0002;
  text-decoration: none;
}

.contato a:hover {
  text-decoration: underline;
}

.contato-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 1.13rem;
  flex-wrap: wrap;
}
.contato-icon {
  animation: floatIcon 2.2s ease-in-out infinite alternate;
  display: inline-block;
}
@keyframes floatIcon {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}
.contato-item a {
  color: #cc0002;
  font-weight: 500;
  margin: 0 6px;
  transition: color 0.2s, text-shadow 0.2s;
  text-decoration: none;
}
.contato-item a:hover {
  color: #a30000;
  text-shadow: 0 2px 8px rgba(204,0,2,0.10);
}
.contato-item div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 8px;
  gap: 0;
}
.contato-item div a {
  margin-bottom: 0;
  line-height: 1.2;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #000;
  color: #fff;
  margin-top: 30px;
}

/* Media Queries para Responsividade */
@media (max-width: 1024px) and (min-width: 769px) {
  .grid-representadas {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  #logo-header {
    max-width: 150px;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }

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

  section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }
  header p {
    font-size: 1rem;
  }
  #logo-header {
    max-width: 120px;
  }
}
