:root {
  --blue: #007bff;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #dc3545;
  --orange: #fd7e14;
  --yellow: #ffc107;
  --green: #28a745;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --primary: #007bff;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  font-family: "Effra", Arial, sans-serif;
  font-size: 100%;
  font-weight: 400;
  line-height: 1.6em;
  color: #333;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
a.cta,
.cta {
  background-color: #007bff;
  max-width: fit-content;
  padding: 20px;
  font-size: 20px;
  color: #f8f9fa;
  text-decoration: none;
  border-radius: 5px;
  box-shadow: 1px 3px 12px #f8f9fa;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 200;
}
.logo img {
  height: 50px;
}
nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-size: 1.1rem;
  transition: transform 0.3s ease-in-out;
}
nav a {
  text-decoration: none;
  color: #444;
  transition: 0.3s;
}
nav a:hover {
  color: #007bff;
  transform: scale(1.05);
}
#contato {
  background: #007bff;
  padding: 8px 14px;
  font-size: 1rem;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
#contato:hover {
  background: #0056b3;
} /* Botão hamburger */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
} /* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 150;
}
.overlay.ativo {
  opacity: 1;
  pointer-events: all;
} /* Menu responsivo */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    width: 260px;
    padding: 40px 20px;
    gap: 20px;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    z-index: 200;
  }
  nav.ativo {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
    color: #007bff;
  }
}
.hero {
  position: relative; /* importante para o ::before se limitar */
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  text-align: left;
  background-image: url("./assets/images/banner-1240x600.png");
  background-size: cover;
  background-position: center;
  padding: 0 30px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* cobre exatamente a .hero */
  background: rgba(0, 0, 0, 0.5); /* overlay escuro */
  z-index: 0;
}
.hero-text,
.formulario {
  position: relative;
  z-index: 1; /* fica acima do overlay */
}
.hero-text {
  color: #f8f9fa;
  font-family: var(--font-family-sans-serif);
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  padding-right: 100px;
}
.hero-text h1 {
  font-size: 65px;
  line-height: 0.9;
}
.hero-text p {
  font-size: 35px;
  line-height: 1;
}
.formulario {
  display: flex;
  flex-direction: column;
  padding: 25px;
  border-radius: 12px;
  max-width: 380px;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: auto;
}
.formulario h2 {
  color: #007bff;
  font-size: 28px;
  text-align: center;
  margin-bottom: 20px;
}
.campo {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

form label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
  text-align: left;
}
form input {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 15px;
  transition: border 0.3s;
}
form input:focus {
  border-color: #007bff;
  outline: none;
}
form input.invalido {
  border-color: red;
}
.erro {
  font-size: 12px;
  color: red;
  margin-top: 3px;
}
form button {
  background: #007bff;
  font-size: 18px;
  color: #fff;
  margin-top: 10px;
  border-radius: 5px;
  padding: 20px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}
form button:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

footer {
  color: #666;
  background-color: #f1f1f1;
  max-width: 100%;
  padding: 30px;
}
.footer-infos {
  display: flex;
  justify-content: space-between;
  padding-bottom: 30px;
}
.infos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-links {
  display: flex;
  flex-direction: column;
}
.info-links a,
.footer-ends a {
  text-decoration: none;
  color: #6c757d;
}
.footer-socialmedia {
  padding-top: 30px;
  justify-content: center;
  display: flex;
  gap: 10px;
}
.footer-ends {
  color: #666;
  background-color: #fff;
  max-width: 100%;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

/* Responsividade */
@media (max-width: 1020px) {
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    background-size: cover; /* cobre todo o container */
    background-position: 20% 80%; /* centraliza a imagem */
    background-repeat: no-repeat; /* evita repetição */
    align-items: center;
    padding: 40px 20px;
    height: auto;
    text-align: center;
  }

  .hero-text {
    padding: 0;
    max-width: 100%;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 70px;
    line-height: 1;
  }

  .hero-text p {
    font-size: 22px;
    line-height: 1.3;
  }
  .hero-text .cta {
    display: none;
  }
  .formulario {
    max-width: 100%;
    width: 100%;
    margin-top: 20px;
  }
  .footer-infos {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }
  .infos {
    gap: 0.4rem;
  }
  .footer-ends {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero {
    background-image: url(./assets/images/banner-768x1024px.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .hero-text h1 {
    font-size: 40px;
  }

  .hero-text p {
    font-size: 18px;
  }

  form button {
    font-size: 16px;
    padding: 15px;
  }
}
