/*
 * Bretas Multimarcas LTDA – Site estático
 * Estilo limpo e corporativo para página "Sobre" e "Programa de Integridade".
 * Mobile first com ajustes responsivos para telas maiores.
 */

/* Paleta de cores baseada na logo (azul escuro) */
:root {
  --color-primary: #123357; /* cor principal */
  --color-accent: #0066cc; /* destaque para botões e links */
  --color-light: #ffffff;
  --color-grey: #f5f7fa;
  --color-text: #334155;
  --color-muted: #64748b;
  --radius: 4px;
}

/* Reset básico e tipografia */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* Layout utilitário */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-accent);
  color: var(--color-light);
}

.btn-secondary {
  background-color: var(--color-accent);
  color: var(--color-light);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-primary);
  color: var(--color-light);
}

/* Cabeçalho */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

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

.logo-wrapper .logo {
  height: 40px;
  width: auto;
}

/* Navegação */
.navbar {
  position: relative;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--color-light);
  position: absolute;
  top: 60px;
  right: 0;
  width: 200px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
}

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

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  height: 32px;
  width: 32px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Estado aberto do menu */
.nav-open .hamburger {
  background-color: transparent;
}

.nav-open .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-open .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-open .nav-links {
  display: flex;
}

/* CTA no topo apenas em telas grandes */
.cta-header {
  display: none;
}

/* Seções principais */
main {
  padding-top: 70px; /* espaço para o cabeçalho fixo */
}

/* Hero Section */
.hero {
  position: relative;
  background-image: linear-gradient(rgba(18, 51, 87, 0.75), rgba(18, 51, 87, 0.75)), url('images/hero-bg.png');
  background-size: cover;
  background-position: center;
  color: var(--color-light);
  text-align: center;
  padding: 6rem 0;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #e2e8f0;
}

.hero-content .btn {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1.25rem;
  }
}

.about-section,
.integrity-section,
.contact-section {
  padding: 4rem 0;
}

.about-section h1,
.integrity-section h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--color-primary);
}

.about-section p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: var(--color-muted);
  text-align: center;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-item {
  background-color: var(--color-grey);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.service-item i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.service-item h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.service-item p {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Seção de integridade */
.integrity-section p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  color: var(--color-muted);
  text-align: center;
}

.integrity-section h2 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.integrity-section ul {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 1rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.integrity-section li {
  margin-bottom: 0.5rem;
}

/* Contato */
.contact-section {
  background-color: var(--color-grey);
}

.contact-container h2 {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-description {
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--color-muted);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.contact-info ul {
  padding-left: 0;
}

.contact-info li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
}

.contact-info li i {
  margin-right: 0.5rem;
  color: var(--color-accent);
}

.contact-actions {
  display: flex;
  gap: 1rem;
}

/* Rodapé */
.site-footer {
  background-color: var(--color-dark, #0a1a2a);
  color: #a5b5c7;
  padding: 2rem 0;
  margin-top: 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.footer-links a {
  color: #a5b5c7;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-info p {
  font-size: 0.8rem;
  text-align: center;
  color: #a5b5c7;
}

/* Botão flutuante do WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transition: background-color 0.2s ease;
}

.whatsapp-button:hover {
  background-color: #20c65a;
}

/* Ajustes responsivos */
@media (min-width: 768px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    box-shadow: none;
    width: auto;
    padding: 0;
    gap: 1.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .cta-header {
    display: inline-block;
  }

  .services-list {
    flex-direction: row;
  }

  .contact-grid {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-links ul {
    flex-direction: row;
    gap: 1.5rem;
  }
}