:root {
  --color-primary: #988e7e;
  --color-primary-light: #dbcab0;
  --color-accent: #dfd0ba;
  --color-white: #ffffff;
  --color-dark: #2e2e2e;
  --color-text: #333333;

  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-md: 16px;
  --radius-lg: 20px;
}


/* ----RESET------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}



/* -------BODY------ */
body {
  background-image: url('https://i.postimg.cc/HLk2DVJy/Chat-GPT-Image-10-de-fev-de-2026-10-58-15.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  font-family: "Poppins", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 251, 241, 0.3);
  backdrop-filter: blur(1px);
  z-index: 0;
}

.main-header,
.login-container,
.footer-container {
  position: relative;
  z-index: 1;
}


.menu a:focus-visible,
.btn-login:focus-visible,
.input-field:focus-visible {
  outline: 2px solid #988e7e;
  outline-offset: 3px;
}




/* ---------- NAVBAR GLASS ---------- */

.main-header {
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  max-width: 100vw;
  margin: 20px 10px;
  padding: 14px 32px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(18px);

  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);

  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.navbar:hover {
  transform: translateY(-2px);
}




/* ---------- LOGO   ---------- */

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* controle REAL do espaço */
}

.logo-name {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #2e2e2e;
  position: relative;
  padding-bottom: 4px;
  line-height: 1.2;

}

.logo-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background-color: #dfd0ba;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.logo-container:hover .logo-name::after {
  transform: scaleX(1.3);
}

.logo-tagline {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #5c5c5c;
  line-height: 1.1;
}

.menu {
  display: flex;
  gap: 24px;
  list-style: none;

}

.menu a {
  position: relative;
  text-decoration: none;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: opacity 0.3s ease;
  color: #2e2e2e;
}

.agenda {
  text-decoration: none;

}

.menu a:hover {
  opacity: 0.8;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #dfd0ba;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.menu a:hover::after {
  transform: scaleX(1);
}



/* ---------- LOGIN QUE VIROU CALENDÁRIO ---------- */

.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

.login-box {
  width: 100%;
  max-width: 360px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  animation: fadeUp 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);


}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}


/* ---------- FORM ---------- */

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #988e7e;

}

.input-label {
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.input-field {
  width: 100%;
  max-width: 260px;
  height: 36px;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background-color: #dbcab0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  font-size: 0.90rem;
  transition:
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    transform 0.2s ease;
}


.input-field:focus {
  outline: none;
  background-color: #ffffff;
  transition: 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

select.input-field {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}



/* ---------- CALENDÁRIO ---------- */

.calendar-wrapper {
  background-color: #ffffff;
  border: 1px solid #988e7e;
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 8px;
  max-width: 100%;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #988e7e;
  margin: 0;
}

.calendar-nav {
  background-color: #dbcab0;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
  font-weight: bold;
}

.calendar-nav:hover {
  background-color: #988e7e;
  color: #ffffff;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 0;
  color: #988e7e;
}

.calendar-day {
  padding: 10px 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  background-color: #f5f5f5;
  transition: 0.2s;
  font-weight: 500;
  min-width: 0;

}

.calendar-day:hover:not(.disabled) {
  background-color: #dbd4c9;
  transform: translateY(-2px);
}

.calendar-day.selected {
  background-color: #988e7e;
  color: #ffffff;
  font-weight: 600;
}

.calendar-day.disabled {
  background-color: #e8e8e8;
  color: #999;
  cursor: not-allowed;
  opacity: 0.5;
}

.calendar-day.empty {
  background-color: transparent;
  cursor: default;
}





/* ---------- BOTÃO DE ENVIAR ---------- */

.btn-login {
  margin: 30px;
  padding: 10px 32px;
  border: none;
  border-radius: 28px 10px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  color: #1f1f1f;
  background-image: linear-gradient(to right,
      #dbd4b4 0%,
      #988e7e 30%,
      #fffbf1 100%);
  background-size: 200% auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-size: 1rem;
  transition:
    background-position 0.8s ease,
    box-shadow 0.3s ease,
    transform 0.15s ease;


  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover {
  background-position: right center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.btn-login:active {
  transform: translateY(0);
}



.btn-loader {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid #000;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-login.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-login.loading .btn-loader {
  display: inline-block;
}

.btn-login.loading .btn-text {
  opacity: 0.7;
}





/* ---------- SEÇÃO SOBRE ---------- */

.about-section {
  padding: 4rem 1.5rem;
  display: flex;
  justify-content: center;
}



.about-title {
  font-family: "Sacramento", cursive;
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* ---------- SOBRE COM FOTO ---------- */

.about-container {
  max-width: 720px;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
}


.about-photo {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(10%);
  transition: transform 0.6s ease, filter 0.6s ease;

}

.about-photo img:hover {
  transform: scale(1.15);
  filter: grayscale(0%);
}




/* ---------- FOOTER ---------- */

.footer-container {
  text-align: center;
  padding: 10px;
  font-size: 0.75rem;
  background-color: #ffffffb0;
}




/* ---------- BOTÃO de VOLTAR AO TOPO ---------- */

#backToTop {
  position: fixed;
  bottom: 18px;
  right: 18px;

  width: 46px;
  height: 46px;

  border: none;
  border-radius: 50%;

  background: rgba(152, 142, 126, 0.85);
  backdrop-filter: blur(14px);

  color: #ffffff;

  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);

  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);

  transition: all 0.3s ease;

  z-index: 999;

  display: none;
}



#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  transform: translateY(-4px);
}




/* ---------- MOBILE ---------- */

@media (max-width: 768px) {

body {
    background-attachment: scroll;
  }

  .navbar {
    flex-direction: column;
    gap: 24px;
  }


  .about-container {
    grid-template-columns: 1fr;
  }



  #backToTop {
    display: flex;
  }

  #backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

}


@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

