/* PALETA: #07284b (Principal), #f2f2f2 (Sec 1), #a3b8cc (Sec 2) */

:root {
  --primary-color: #07284b;
  --bg-light: #f2f2f2;
  --accent-color: #a3b8cc;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  font-weight: 400; /* Regular */
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* TIPOGRAFIA */
h1,
h2,
h3 {
  font-family: "Lato", sans-serif;
  font-weight: 700; /* Bold */
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  font-family: "Lato", sans-serif;
  font-weight: 400;
}

/* HEADER E NAV */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
}

.top-bar {
  background-color: var(--primary-color);
  color: var(--bg-light);
  display: flex;
  justify-content: space-between;
  padding: 8px 10%;
  font-size: 13px;
}

.top-bar a {
  color: inherit;
  text-decoration: none;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: "Michroma", serif;
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: 700;
}

.menu {
  display: flex;
  list-style: none;
  gap: 20px;
}
.menu a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
  transition: 0.3s;
}
.menu a:hover {
  color: var(--accent-color);
}

/* COMPONENTES */
.container {
  width: 85%;
  max-width: 1200px;
  margin: auto;
}

.btn-cta {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  transition: 0.3s;
}
.btn-cta:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/* SEÇÕES */
.section-padding {
  padding: 100px 0;
  text-align: center;
}
.bg-light {
  background-color: var(--bg-light);
}

.hero {
  background: linear-gradient(rgba(7, 40, 75, 0.8), rgba(7, 40, 75, 0.8)),
    url("https://unsplash.com");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 150px 0;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  font-size: 3rem;
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  background: var(--white);
  padding: 40px;
  border-top: 5px solid var(--accent-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}
.card:hover {
  border-top-color: var(--primary-color);
  transform: translateY(-5px);
}

/* FORMULÁRIO */
.contact-form fieldset {
  border: none;
}
.contact-form legend {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  font-family: "Lato", sans-serif;
  width: 100%;
}
.full-width {
  width: 100%;
}

/* RODAPÉ */
.footer-site {
  background: var(--primary-color);
  color: var(--white);
  padding: 18px 0;
  text-align: center;
}
.logo-footer {
  font-family: "Michroma", serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: block;
}
.copyright {
  font-size: 12px;
  margin-top: 20px;
  opacity: 0.7;
}

/* WHATSAPP FLOAT - REDONDO E CENTRALIZADO */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;  /* Largura fixa */
  height: 60px; /* Altura igual à largura para ser um círculo */
  background-color: #25d366;
  border-radius: 50%; /* Faz o botão ser redondo */
  display: flex; /* Ativa o Flexbox */
  justify-content: center; /* Centraliza horizontalmente */
  align-items: center;     /* Centraliza verticalmente */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 2000;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1); /* Efeito de zoom ao passar o mouse */
  background-color: #20ba5a;
}

/* Tamanho do Ícone SVG */
.whatsapp-float img {
  width: 35px; /* Tamanho proporcional do ícone interno */
  height: 35px;
  display: block;
}

/* Ajuste para Mobile */
@media (max-width: 768px) {
  .whatsapp-float {
      bottom: 20px;
      right: 20px;
      width: 55px;
      height: 55px;
  }
}


/* MENU MOBILE */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: 0.3s;
  transform-origin: 1px;
}

@media (max-width: 992px) {
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: 0.5s;
  }
  .menu.active {
    max-height: 600px;
    padding: 30px 0;
  }
  .menu li {
    border-bottom: 1px solid var(--bg-light);
    width: 100%;
  }
  .menu-toggle {
    display: flex;
  }
  .top-bar,
  .btn-cta {
    display: none;
  }
  .hero h1 {
    font-size: 2rem;
  }

}