/* Box sizing rules */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* MODAL */
/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(252,	248,	237, 0.65);
  backdrop-filter: blur(4px);
}

/* Container externo – mantém os 4 cantos arredondados */
.modal-container {
  position: relative;
  background: #FCF8ED;
  width: 90%;
  max-width: 768px;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* ← importante: recorta tudo nos cantos arredondados */
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

/* Cabeçalho fixo */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.75rem 1.75rem 1rem;
  flex-shrink: 0;
  border-bottom: 1px solid #f3f4f6; /* opcional, pode remover se quiser */
}

.modal-title {
  font-size: 33px;
  font-weight: 600;
  color: var(--primary-500);
  margin: 0;
  line-height: 1.3;
  padding-right: 1rem;
}

.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
  border-radius: 50%;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
  margin-top: -0.15rem;
}

.modal-close:hover {
  color: #111827;
  background: #f3f4f6;
}

/* Corpo que rola */
.modal-body {
  overflow-y: auto;
  padding: 20px 1.75rem 2rem;
  flex: 1;
  min-height: 0; /* necessário para o flex + overflow funcionar corretamente */
}

/* Conteúdo interno */
.modal-content {
  color: #4b5563;
  line-height: 1.7;
  font-size: 1rem;
}

.modal-content p {
  margin-bottom: 1rem;
}

.modal-content p:last-child {
  margin-bottom: 0;
}

/* Impede scroll do body quando o modal está aberto */
body.modal-open {
  overflow: hidden;
}


/* CUSTOM */
.max-w-840 {
  width: 100%;
  max-width: 840px;
}

.max-w-1000 {
  width: 100%;
  max-width: 1000px;
}


/* ANIME */
/* Base para elementos com animação */
[data-anime] { opacity: 0; animation-play-state: paused; /* Animação pausada até entrar na tela */ }

/* Tipos de animação */
[data-anime="top"] { animation-name: fromTop; }
[data-anime="right"] { animation-name: fromRight; }
[data-anime="left"] { animation-name: fromLeft; }
[data-anime="bottom"] { animation-name: fromBottom; }
[data-anime="center"] { animation-name: fromCenter; }

/* Tempos de animação */
[data-time="fast"] {
  animation-duration: 0.2s;
  animation-delay: 0.2s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="medium"] {
  animation-duration: 0.4s;
  animation-delay: 0.4s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow01"] {
  animation-duration: 0.6s;
  animation-delay: 0.6s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow02"] {
  animation-duration: 0.8s;
  animation-delay: 0.8s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow03"] {
  animation-duration: 1.0s;
  animation-delay: 1.0s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow04"] {
  animation-duration: 1.2s;
  animation-delay: 1.1s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow05"] {
  animation-duration: 1.4s;
  animation-delay: 1.4s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow06"] {
  animation-duration: 1.6s;
  animation-delay: 1.6s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow07"] {
  animation-duration: 1.8s;
  animation-delay: 1.8s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow08"] {
  animation-duration: 2s;
  animation-delay: 2s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow09"] {
  animation-duration: 2.2s;
  animation-delay: 2.2s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow10"] {
  animation-duration: 2.4s;
  animation-delay: 2.4s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow11"] {
  animation-duration: 2.6s;
  animation-delay: 2.6s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow12"] {
  animation-duration: 2.8s;
  animation-delay: 2.8s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow13"] {
  animation-duration: 3s;
  animation-delay: 3s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

/* Dispara a animação quando a classe 'visible' é adicionada */
[data-anime].visible { animation-play-state: running; }

/* Definição das animações */
@keyframes fromTop {
  from { opacity: 0; transform: translate3d(0, -50px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fromRight {
  from { opacity: 0; transform: translate3d(50px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fromLeft {
  from { opacity: 0; transform: translate3d(-50px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fromBottom {
  from { opacity: 0; transform: translate3d(0, 50px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fromCenter {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* MEDIA QUERYS */
@media (max-width: 640px) {
  .logo-gdm-footer {
    width: 80px;
  }

  .movie {
    max-width: 320px;
    height: 165px;
  }

  .grains {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    animation: spin 30s linear infinite;
    transform-origin: center;
  }

  .top-30-neg {
    top: -30px;
  }

  .right-210-neg {
    right: -210px;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .movie {
    max-width: 600px;
    height: 330px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .movie {
    max-width: 700px;
    height: 390px;
  }
}

@media (max-width: 768px) {
  .source-serif-4-medium {
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
  }
  h1, h2 {
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-size: 24px;
    font-weight: 500;
    font-style: normal;
    line-height: 100%;
  }
  .text-custom-10 {
    font-size: 10px;
  }
  .text-custom-18 {
    font-size: 18px;
  }
  .text-custom-20 {
    font-size: 20px;
  }
  .text-custom-22 {
    font-size: 22px;
  }
  .text-custom-55 {
    font-size: 55px;
  }
  .text-custom-60 {
    font-size: 60px;
  }

  .bg-banner {
    background-image: url('../img/banner.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: left;
    background-position-y: center;
  }

  .bg-legacy {
    background-image: url('../img/legacy.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: 60%;
    background-position-y: center;
  }

  .bg-area {
    background-image: url('../img/area.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
  }

  .bg-pre-requisits {
    background-image: url('../img/pre-requisits-02.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: left;
    background-position-y: center;
  }

  .bg-closing {
    background-image: url('../img/closing.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: 80%;
    background-position-y: center;
  }

  .card-numbers {
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid 1px var(--secondary-500);
    border-radius: 4px;
  }
  
  .card-journey {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    gap: 40px;
    border: solid 1px var(--secondary-500);
    border-radius: 4px;
    padding-left: 20px;
  }

  .rotate-90 {
    rotate: 90deg;
  }
}

@media (min-width: 768px) {
  p, span {
    font-size: 18px;
  }
  .source-serif-4-medium {
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
  }
  h1, h2 {
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-size: 55px;
    font-weight: 500;
    font-style: normal;
    line-height: 100%;
  }
  .md\:text-custom-10 {
    font-size: 10px;
  }
  .md\:text-custom-18 {
    font-size: 18px;
  }
  .md\:text-custom-20 {
    font-size: 20px;
  }
  .md\:text-custom-22 {
    font-size: 22px;
  }
  .md\:text-custom-55 {
    font-size: 55px;
  }
  .md\:text-custom-60 {
    font-size: 60px;
  }

  .bg-banner {
    background-image: url('../img/banner.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: 50%;
    background-position-y: center;
  }

  .bg-legacy {
    background-image: url('../img/legacy.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: 42%;
    background-position-y: center;
  }

  .bg-pre-requisits {
    background-image: url('../img/pre-requisits-02.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: 70%;
    background-position-y: center;
  }

  .bg-closing {
    background-image: url('../img/closing.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: 33%;
    background-position-y: center;
  }

  .card-numbers {
    width: 234px;
    height: 234px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid 1px var(--secondary-500);
    border-radius: 4px;
  }
  
  .card-journey {
    width: 453px;
    height: 100px;
    display: flex;
    align-items: center;
    gap: 96px;
    border: solid 1px var(--secondary-500);
    border-radius: 4px;
    padding-left: 35px;
  
  }
  
}

/* MENU MOBILE - Telas MENORES que 1024px */
@media (max-width: 1023px) {
  #check {
    display: none;
  }
  .checkbtn {
    font-size: 24px;
    float: right;
    cursor: pointer;
    display: flex;
  }

  ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    top: 60px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
  }
  nav ul li {
    display: block;
  }
  nav ul li a p{
    color: var(--white);
  }
  #check:checked ~ ul {
    left: 0;
  }
}

/* MENU DESKTOP - Telas 1024px ou MAIORES */
@media (min-width: 1024px) {
  .lg\:text-custom-22 {
    font-size: 22px;
  }
  .bg-banner {
    background-image: url('../img/banner.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
  }

  .bg-legacy {
    background-image: url('../img/legacy.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
  }

  .bg-area {
    background-image: url('../img/area.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
  }

  .bg-pre-requisits {
    background-image: url('../img/pre-requisits-02.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
  }

  .bg-closing {
    background-image: url('../img/closing.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
  }

  .movie {
    max-width: 1000px;
    height: 562px;
  }
 
}

@media (min-width: 1024px) and (max-width: 1279px) {
  #check {
    display: none;
  }
  .checkbtn {
    font-size: 30px;
    float: right;
    cursor: pointer;
    display: flex;
  }

  ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    top: 60px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
  }
  nav ul li {
    display: block;
  }
  nav ul li a p{
    color: var(--white);
  }
  #check:checked ~ ul {
    left: 0;
  }
}

@media (min-width: 1280px) {
  .checkbtn {
    display: none;
  }
  #check {
    display: none;
  }
  ul {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    text-align: left;
    transition: none;
  }
  nav ul li {
    display: inline-flex;
  }
  nav ul li a p {
    color: var(--white);
  }

}

@media (min-width: 1366px) {}

@media (min-width: 1520px) {
  .bg-banner {
    background-image: url('../img/banner-full.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: 30px;
    padding: 200px 0;
    max-width: 1920px;
    min-height: 80vh;
    margin: auto;
  }
}
