/* Estilos globais — variáveis, reset, header, footer e componentes compartilhados */

:root {
 --space-xs: 0.25rem;
 --space-sm: 0.5rem;
 --space-md: 1rem;
 --space-lg: 1.5rem;
 --space-xl: 2rem;

 --color-green: #0f766d;
 --color-grey: #f2f2f2;
}

* {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3 {
  font-weight: bold;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
}

h4 {
   font-size: clamp(1.1rem, 2vw, 1.2rem);
}

p {
  font-size: clamp(0.95rem, 1.2vw, 1rem);
}

small {
  font-size: clamp(0.8rem, 1vw, 0.875rem);
}

.title-sm {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

main {
    padding: 2rem;
}

body {
    background-color: #fafafa;
}

section {
    margin-top: var(--space-xl);
}

.header {
  width: 100%;
  padding: var(--space-lg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  top: 0;
  position: sticky;
  z-index: 999;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.logo-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.logo-text {
    display: flex;
    font-size: 1.2rem;
    font-weight: bold;
}

a {
    text-decoration: none;
}

.logo-text a {
  color: black;
  font-weight: bold;
  font-size: 1.2rem;
}

.nav-ul {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.nav-ul a {
  color: rgba(0, 0, 0, 0.6);
  
}

.nav-ul a:hover {
  text-decoration: underline;
}

.actions-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-search-input, .header-search-input-mobile {
  border-radius: 10px;
  border: 1px solid #ccc;
}

.header-search-input{
  width: 12vw;
}

.header-search-input::placeholder,
.header-search-input-mobile::placeholder {
    color: #868686;
}

.header-search-input,
.header-btn,
.header-btn-mobile,
.header-search-input-mobile {
  padding: .8em;
}

.header-btn,
.header-btn-mobile {
  border-radius: 10px;
  border: 1px solid var(--color-green);
  background: #fff;
  color: var(--color-green);
  cursor: pointer;
  transition: 0.2s;
}

.header-btn:hover,
.header-btn-mobile:hover {
  background: var(--color-green);
  color: white;
}

.login-btn a {
    color: var(--color-green);
}

.menu-btn{
    display: none;
    height: 80%;
    width: 8%;
    background-color: white;
    border: none;
    cursor: pointer;
}

.menu-toggle{
  display: none;
}

.menu-toggle:checked ~ .nav-mobile{
  display: flex;
}

.hambuguer-img{
    max-width: 100%;
}

.nav-mobile{
  display: none;
  border-top: 1px solid var(--color-grey);
  padding: var(--space-lg);
  width: 100%;
}

.nav-mobile,
.nav-ul-mobile,
.actions-container-mobile{
  flex-direction: column;
  align-items: center;
}

.nav-ul-mobile,
.actions-container-mobile{
  display: flex;
}

.actions-container-mobile{
  margin-top: 2vh;
  gap: var(--space-md);
  width: 50%;
}

.login-search-container-mobile{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
}

.header-btn-mobile{
  width: 100%;
}

.actions-container-mobile form,
.header-search-input-mobile{
  width: 100%;
}

.button-footer {
    display: block;
    border: 1px solid rgba(189, 187, 187, 0.5);
    background-color: #fff;
    padding: var(--space-lg);
    border-radius: 5px;
    text-align: left;
    color: #000;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.button-footer:hover {
    background-color: var(--color-grey);
}

:focus-visible {
    outline: 3px solid var(--color-green);
    outline-offset: 3px;
}

footer{
    border-top: 1px solid rgba(189, 187, 187, 0.5);
    padding: 20px;
    bottom: 0;
    background-color: #fff;
    position: relative;
    width: 100%;
}

footer p{
    display: flex;
    flex-direction: column;
    color: rgba(133, 130, 130, 0.699);
}

.botoes-footer{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.botoes-footer > button{
    border: 1px solid rgba(189, 187, 187, 0.5);
    background-color: #fff;
    padding: var(--space-lg);
    border-radius: 5px;
    text-align: left;
}

.selected{
  font-weight: bold;
  text-decoration: underline;
}

@media (max-width: 820px) {
    .header-content {
        gap: var(--space-sm);
    }
}

@media (min-width: 769px){

  .nav-mobile{
    display: none !important;
  }

}

@media (max-width: 768px) {

  .nav-ul-d,
  .header-search-input,
  .header-btn {
    display: none;
  }

  .menu-btn {
    display: block;
    min-height: 100%;
  }

}

@media (max-width: 426px) {
  .actions-container-mobile{
    width: 100%;
  }
}