@import url("var.css");

/* =========================
  BASE
========================= */

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--bg-color);
  font-family: var(--font-family-body);
}

a {
  font-size: 0.95rem;
  color: var(--footer-text-color);
  text-decoration: none;
  opacity: 0.9;
}

a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* =========================
  NAVBAR
========================= */

.navbar {
  background-color: var(--header-bg-color);
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.navbar__logo a {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--header-bg-text-color);
}

.navbar__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar__links a {
  font-size: 0.9rem;
  color: var(--header-bg-text-color);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.navbar__links a:hover {
  opacity: 1;
}

/* SEARCH */

.navbar__search {
  position: relative;
}

.navbar__search input {
  background-color: var(--form-results-bg-color);
  border: none;
  padding: 0.45rem 0.8rem;
  border-radius: 99px;
  font-size: 0.85rem;
  width: 140px;
}

.navbar__search input::placeholder {
  color: var(--header-bg-text-color);
}

.navbar__search input:focus {
  outline: 2px solid var(--header-bg-text-color);
}

.search-results {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 100%;
  background-color: var(--form-results-bg-color);
  color: var(--text-paragraph-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: auto;
  z-index: 999;
}

.search-item {
  padding: 10px 15px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

/* =========================
  HERO
========================= */

.hero_section {
  min-height: 87vh;
  display: flex;
  width: 100%;
  overflow: hidden;
  background-image: url("/assets/banner-ana.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================
  SOBRE
========================= */

section.sobre {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 4rem;
}

.section__foto_sobre {
  flex: 1;
  display: flex;
  justify-content: center;
}

.section__foto_sobre img {
  width: 100%;
  max-width: 550px;
  height: 85vh;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.073);
}

.section__content_sobre {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section__content_sobre h2 {
  font-family: var(--font-family-title);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--secundary-title-color);
  text-align: center;
}

.section__content_sobre h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 0.75rem auto 0;
  background: var(--secundary-title-color);
  border-radius: 2px;
}

.section__content_sobre p {
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-paragraph-color);
  text-align: justify;
}

/* =========================
  SERVIÇOS
========================= */

.services {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--header-bg-text-color);
  padding: 6rem 2rem;
}
 
.services__title {
  font-family: var(--font-family-title);
  font-size:  2.6rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--bg-card-color);
}
 
.services__title::after {
  content: "";
  display: block;
  width: 75px;
  height: 4px;
  margin: 0.55rem auto 0;
  background: var(--bg-card-color);
  border-radius: 2px;
}
 
.folders {
  max-width: 1200px; 
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 3.5rem; 
}
 
.folder.folder--card {
  display: flex;
  align-items: center; 
  justify-content: center;

  width: 100%;
  height: 420px;

  background-image: url("/assets/pastas-ana.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  text-decoration: none;
  transition: transform 0.25s ease;
}
 
.folder.folder--card:hover {
  transform: translateY(-10px) scale(1.02);
}
 
.folder__content {
  width: 100%;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
 
.folder__name {
  width: 90%;
  margin: auto;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-paragraph-color);
}

.folder__desc {
  width: 85%;
  margin: auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-paragraph-color);
}

/* =========================
  AUTORIDADE
========================= */

.authority {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
  background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
    url("/assets/1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: lighten;
}

.authority__container {
  max-width: 1100px;
  margin: 0 auto;
}

.authority h2 {
  font-family: var(--font-family-title);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--secundary-title-color);
}

.authority__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.authority__item {
  padding: 2.2rem 1.8rem;
  background-color: #e7e7e7c5;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(52, 94, 125, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.authority__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(52, 94, 125, 0.5);
}

.authority__number {
  font-family: var(--font-family-title);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-paragraph-color);
}

.authority__item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-paragraph-color);
}

/* =========================
  FORMULÁRIO DE CONTATO
========================= */

.formulario {
  background-color: var(--title-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 60px 4%;
}

.formulario h2 {
  font-family: var(--font-family-title);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--form-results-bg-color);
}

form#form {
  max-width: 500px;
  width: 100%;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form#form input,
form#form textarea {
  width: 100%;
  background-color: var(--form-results-bg-color);
  border: none;
  outline: none;
  padding: 20px 15px;
  border-radius: 15px;
  color: #595959;
  font-size: 18px;
}

form#form textarea {
  resize: none;
  height: 150px;
}

input::placeholder,
textarea::placeholder {
  color: var(--header-bg-text-color);
  opacity: 1;
}

form#form .btn-enviar input {
  background-color: var(--form-results-bg-color);
  color: var(--header-bg-text-color);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

form#form .btn-enviar input:hover {
  background-color: var(--header-bg-text-color);
  color: var(--form-results-bg-color);
}

/* =========================
  FOOTER
========================= */

.footer {
  background-image: url("/assets/fundo-footer.jpeg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  padding: 3.5rem 1.5rem;
}

.footer__container {
  font-size: 0.9rem;
  font-weight: bold;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__left h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--footer-text-color);
}

.footer__right {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  color: var(--footer-text-color);
}

/* =========================
  RESPONSIVO
========================= */

@media (max-width: 768px) {

  /* NAVBAR */
  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem;
  }

  .navbar__links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .navbar__search input {
    width: 100%;
  }

  /* HERO */
  .hero_section {
    min-height: auto; 
    background-size: contain; 
    aspect-ratio: 16 / 9; 
    background-position: center top;
  }

  /* SOBRE */

  section.sobre {
    flex-direction: column;
    padding: 60px 20px;
    gap: 1rem;
  }

  .section__foto_sobre img{
    height: 50vh;
    max-width: 400px;
  }

  /* SERVIÇOS */
  .services {
    padding: 4rem 1rem;
  }

  .folders {
    grid-template-columns: 1fr;
    gap: 0rem;
  }

  .folder.folder--card {
    height: 320px;
    background-size: 90%;
  }

  .folder__content {
    transform: translateY(12px);
    gap: 0.6rem;
    max-width: 90%;
    margin: 0 auto;
  }

  .folder.name {
    font-size: 0.95rem;
    width: 100%;
  }
  
  .folder__desc {
    font-size: 0.95rem;
    width: 90%;
  }

  /* AUTORIDADE */
  .authority {
    padding: 4rem 1rem;
    background-color: var(--bg-color);
  }

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

  .authority__item {
    padding: 1.5rem;
  }

  /* FORMULÁRIO */
  .formulario {
    padding: 4rem 20px;
  }

  form#form {
    width: 100%;
  }

  form#form input,
  form#form textarea {
    padding: 15px;
    font-size: 16px;
  }

  /* FOOTER */
  .footer__container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

}