/* ========== VARIÁVEIS ========== */
:root {
  --blue-dark: #135f8d;
  --blue-light: #5cb8e8;
  --white: #fff;
  --red: #e72d33;
  --red-light: #ff4d5a;
  --black: #202020;
  --gray: #353535;
}

/* ========== RESET E BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  vertical-align: baseline;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--gray);
}

/* ========== TIPOGRAFIA ========== */
h1 {
  font-family: "Lato", Sans-serif;
  font-size: 7rem;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-size: 3rem;
  line-height: 1.2;
}

h3 {
  font-size: 4rem;
  line-height: 1.3;
  margin-bottom: 2rem;
}

h4 {
  font-size: 1.75rem;
}

h5 {
  font-size: 1.5rem;
}

h6 {
  font-size: 1.25rem;
}

p {
  font-size: 1.6rem;
}

/* ========== FORMULÁRIOS ========== */
input::placeholder,
textarea::placeholder {
  font-family: "Montserrat", sans-serif;
  color: #999;
  font-style: italic;
}

/* ========== BOTÕES ========== */
.btn {
  border-radius: 10rem;
  padding: 1rem 3rem;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  border: 0;
  background: linear-gradient(to right, var(--blue-dark), var(--blue-light));
  color: var(--white);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
#btn-cursos {
  text-decoration: none;
}
.btn:hover,
.btn:active {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.staff-btn {
  background: linear-gradient(to right, var(--red), var(--red-light));
  margin-top: 10rem;
}

/* ========== NAVEGAÇÃO ========== */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  backdrop-filter: blur(5px);
}

#maframusic-logo {
  width: auto;
  height: 70%;
  margin-left: 3rem;
  padding: 1rem;
}

.nav-list {
  display: flex;
  margin: 0 2rem;
}

.nav-list a {
  font-family: "Staatliches", sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 2.2rem;
  padding: 1.5rem;
  display: block;
}

.nav-list a:hover,
.nav-list a:active {
  border: 1px black solid;
}

.nav-list a:link,
.nav-list a:visited {
  color: var(--white);
}
#history-section,
#courses-section,
#ourspace-section,
#staff-section,
#event-section {
  scroll-margin-top: 5rem;
}
#contact-section {
  scroll-margin-top: 7rem;
}
/* ========== MENU HAMBURGUER ========== */
/* ESTILO DO HAMBURGUER */
.hamburger {
  margin-right: 2rem;
  display: block;
  width: 3rem;
  height: 0.3rem;
  background-color: var(--white);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 3rem;
  height: 0.3rem;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -0.9rem;
}

.hamburger::after {
  top: 0.9rem;
}

/* ANIMAÇÃO PARA "X" */
#mobile-menu-btn.open .hamburger {
  background-color: transparent;
}

#mobile-menu-btn.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

#mobile-menu-btn.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* OCULTAR NO DESKTOP */
#mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ========== HERO SECTION ========== */
#hero-section {
  height: 100dvh;
  background-image: radial-gradient(
      circle,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.5) 95%
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 1) 100%),
    url(./img/sarau-bg.webp);
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  align-items: center;
}

#hero-section,
#hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#hero-content {
  height: 100%;
  color: var(--white);
  justify-content: flex-end;
  padding-bottom: 5rem;
  text-align: center;
}

#hero-content h1 {
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
}

#hero-content h2 {
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.25s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HISTORY SECTION ========== */
#history-section {
  height: auto;
  max-width: 180rem;
  padding: 6rem 10rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#history-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 4rem;
  width: 100%;
  max-width: 120rem;
  justify-content: space-between;
  align-items: center;
}

#history-text {
  flex: 0 0 48%;
  max-width: 48%;
  margin-top: 0;
}

#history-header {
  text-transform: uppercase;
}

#history-paragraph {
  font-size: 1.75rem;
  line-height: 2;
  font-weight: 300;
  margin-bottom: 6rem;
}

#history-img-div {
  flex: 0 0 48%;
  max-width: 48%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

#history-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: url("./img/staff_mask_1.svg");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("./img/staff_mask_1.svg");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* ========== COURSES SECTION ========== */
#courses-section {
  height: 100%;
  max-width: 180rem;
  padding: 6rem 10rem;
  margin: 0 auto;
}

#courses-header {
  text-transform: uppercase;
  margin-bottom: 3rem;
}

#courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  width: 100%;
  margin-top: 5rem;
}

.course-container,
.staff-container {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  height: auto;
  margin: 2rem auto;
  max-width: 30rem;
}

.course-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: 2.5rem;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 800;
  text-shadow: 1px 1px 5px #353535;
  pointer-events: none;
}

.course-img,
.staff-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.course-img:hover,
.course-img:active,
.staff-img:hover,
.staff-img:active {
  transform: rotate(5deg) scale(1.05);
}

.course-img-back {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  z-index: -1;
}

/* Máscaras cíclicas para course-img e staff-img */
#courses-grid .course-container:nth-child(6n + 1) .course-img,
.staff-container:nth-child(6n + 1) .staff-img {
  -webkit-mask-image: url("./img/staff_mask_1.svg");
  mask-image: url("./img/staff_mask_1.svg");
}

#courses-grid .course-container:nth-child(6n + 2) .course-img,
.staff-container:nth-child(6n + 2) .staff-img {
  -webkit-mask-image: url("./img/staff_mask_2.svg");
  mask-image: url("./img/staff_mask_2.svg");
}

#courses-grid .course-container:nth-child(6n + 3) .course-img,
.staff-container:nth-child(6n + 3) .staff-img {
  -webkit-mask-image: url("./img/staff_mask_3.svg");
  mask-image: url("./img/staff_mask_3.svg");
}

#courses-grid .course-container:nth-child(6n + 4) .course-img,
.staff-container:nth-child(6n + 4) .staff-img {
  -webkit-mask-image: url("./img/staff_mask_4.svg");
  mask-image: url("./img/staff_mask_4.svg");
}

#courses-grid .course-container:nth-child(6n + 5) .course-img,
.staff-container:nth-child(6n + 5) .staff-img {
  -webkit-mask-image: url("./img/staff_mask_5.svg");
  mask-image: url("./img/staff_mask_5.svg");
}

#courses-grid .course-container:nth-child(6n + 6) .course-img,
.staff-container:nth-child(6n + 6) .staff-img {
  -webkit-mask-image: url("./img/staff_mask_6.svg");
  mask-image: url("./img/staff_mask_6.svg");
}

/* Máscaras cíclicas para course-img-back */
#courses-grid .course-container:nth-child(6n + 1) .course-img-back {
  -webkit-mask-image: url("./img/staff_mask_5.svg");
  mask-image: url("./img/staff_mask_5.svg");
}

#courses-grid .course-container:nth-child(6n + 2) .course-img-back {
  -webkit-mask-image: url("./img/staff_mask_1.svg");
  mask-image: url("./img/staff_mask_1.svg");
}

#courses-grid .course-container:nth-child(6n + 3) .course-img-back {
  -webkit-mask-image: url("./img/staff_mask_2.svg");
  mask-image: url("./img/staff_mask_2.svg");
}

#courses-grid .course-container:nth-child(6n + 4) .course-img-back {
  -webkit-mask-image: url("./img/staff_mask_1.svg");
  mask-image: url("./img/staff_mask_1.svg");
}

#courses-grid .course-container:nth-child(6n + 5) .course-img-back {
  -webkit-mask-image: url("./img/staff_mask_3.svg");
  mask-image: url("./img/staff_mask_3.svg");
}

#courses-grid .course-container:nth-child(6n + 6) .course-img-back {
  -webkit-mask-image: url("./img/staff_mask_5.svg");
  mask-image: url("./img/staff_mask_5.svg");
}

/* ========== MISSION SECTION ========== */
#mission-section {
  height: 29rem;
  width: 100%;
  margin-top: 10rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 0 10rem;
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.8) 30%,
      rgba(0, 0, 0, 0.8) 60%,
      rgba(0, 0, 0, 0) 100%
    ),
    url(./img/visao.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#mission-header {
  margin-bottom: 1rem;
  text-transform: uppercase;
}

#mission-text {
  font-size: 2rem;
}

#mission-text,
#mission-header {
  color: var(--white);
  text-shadow: 1px 1px 5px #353535;
  text-align: center;
  width: 100rem;
}

/* ========== OURSPACE SECTION ========== */
#ourspace-section {
  height: 100%;
  max-width: 180rem;
  padding: 6rem 10rem;
  margin: 0 auto;
}

#ourspace-header {
  text-transform: uppercase;
  margin-bottom: 2rem;
}

#ourspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
  width: 100%;
}

.gallery-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.image-gallery {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.gallery-container:hover .gallery-hover,
.gallery-container:active .gallery-hover {
  opacity: 1;
}

.gallery-text {
  text-transform: uppercase;
  text-shadow: 1px 1px 5px #353535;
  font-size: 2rem;
  font-weight: 500;
}

/* ========== STAFF SECTION ========== */
#staff-section {
  background-image: linear-gradient(
    to bottom,
    var(--blue-dark),
    var(--blue-light)
  );
}

#staff-wrapper {
  height: 100%;
  max-width: 180rem;
  padding: 6rem 10rem;
  margin: 0 auto;
}

#staff-header {
  text-transform: uppercase;
  margin-bottom: 3rem;
  color: var(--white);
}

#staff-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.staff-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.staff-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 100%;
}

.staff-title {
  font-weight: bold;
  padding: 0.5rem;
  width: max-content;
}

.staff-role {
  font-size: 1.4rem;
  line-height: 1.2;
  padding: 0rem 0.5rem 0.5rem 0.5rem;
}

.staff-title,
.staff-role {
  display: inline-block;
  background-color: var(--red);
  color: var(--white);
}

#staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
  width: 100%;
  margin-top: 5rem;
}

/* ========== CONTATO SECTION ========== */
.contact-section {
  max-width: 180rem;
  margin: 0 auto;
  padding: 6rem 10rem;
  background-color: #f9f9f9;
}

.contact-header {
  margin-bottom: 2rem;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  align-items: flex-start;
}

.contact-form {
  flex: 2;
  min-width: 30rem;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 1.5rem;
  font-size: 1.6rem;
  border: 1px solid #ccc;
  border-radius: 0.8rem;
  margin-bottom: 2rem;
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.map-container {
  flex: 1;
  max-height: 32rem;
  min-width: 30rem;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.8rem;
}

/* ========== FOOTER SECTION ========== */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  font-family: Montserrat, sans-serif;
}

footer > * {
  border-top: 1px solid var(--gray);
  padding-top: 3rem;
}

address {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1280px;
  margin: 2rem auto;
  font-style: normal;
  flex-direction: row;
}

.adress-container {
  flex: 1 1 30%;
  min-width: 25rem;
  text-align: left;
}

.address-title {
  font-size: 2.4rem;
  color: var(--red);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: "Staatliches", sans-serif;
}

.adress-text,
.adress-link {
  font-size: 1.8rem;
  margin: 0.5rem 0;
  color: var(--white);
  font-weight: 400;
}

.adress-text strong {
  color: var(--red);
}

.address-text,
.adress-text strong {
  font-size: 1.6rem;
  margin: 0.5rem 0;
}
.adress-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.whats-container {
  width: 70px;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
}
.whats-btn {
  width: 70px;
  height: 70px;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden; /* Garante que a imagem não ultrapasse */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.whats-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
footer small {
  display: block;
  margin-top: 2rem;
  font-size: 1.4rem;
  color: var(--white);
}
/* CAPTCHA TEXT */
#captcha-text {
  font-family: "Roboto";
  color: #757575;
}
/* ========== EFEITOS ESPECIAIS ========== */
.left-border {
  position: relative;
}

.left-border::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--red);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.8s ease-out;
}

.left-border.animate::before {
  transform: scaleY(1);
}

/* ========== MEDIA QUERIES ========== */
/* Tablet (até 1024px) */
@media (max-width: 1024px) {
  #courses-grid,
  #staff-grid,
  #ourspace-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }

  #maframusic-logo {
    height: 50%;
    margin-left: 2rem;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    font-size: 1.8rem;
  }

  .nav-list a {
    padding: 1rem 1.2rem;
    font-size: 1.8rem;
  }

  #mission-section {
    padding: 0 10rem;
  }

  #mission-text,
  #mission-header {
    width: 100%;
  }

  #staff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
  /* Navegação Mobile */
  #mobile-menu-btn {
    display: block;
  }

  .nav-list {
    display: none;
    position: fixed;
    top: 10rem;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    padding: 2rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-list.active {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    z-index: 9999;
  }

  .nav-list li {
    margin: 1rem 0;
  }

  #maframusic-logo {
    margin-left: 2rem;
    height: 50%;
  }

  /* Seções responsivas */
  #hero-section {
    padding: 0 1rem;
  }
  #history-section,
  #courses-section,
  #ourspace-section,
  #staff-wrapper,
  #event-section,
  #contact-section {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  #hero-content h2 {
    font-size: 2rem;
  }

  #history-container {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  #history-text,
  #history-img-div {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 2rem 0;
  }

  #history-img-div {
    aspect-ratio: 1 / 1;
  }

  #courses-grid,
  #staff-grid,
  #ourspace-grid {
    grid-template-columns: 1fr;
  }

  #mission-section {
    padding: 0 4rem;
  }

  #mission-text {
    font-size: 2rem;
  }

  #mission-header {
    font-size: 2.5rem;
  }

  /* Contato responsivo */
  .contact-wrapper {
    flex-direction: column;
  }

  .map-container {
    width: 100%;
    height: 30rem;
    margin-top: 3rem;
  }

  .contact-form {
    width: 100%;
  }

  .contact-section {
    padding: 4rem 2rem;
  }

  /* Footer responsivo */
  .adress-container {
    flex: 1 1 100%;
    text-align: center;
  }

  footer small {
    text-align: center;
  }
}
