/* ================================= */
/* MODAL - RESPONSIVE TYPOGRAPHY     */
/* ================================= */

/* Hero Section */
.modal-hero-tags {
  color: var(--primary-green);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.045rem;
  text-transform: capitalize;
  line-height: 1rem;
}

.modal-hero-title {
  color: var(--neutral-light);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 7.75rem;
  font-weight: 900;
  letter-spacing: 0.155rem;
  margin: 0;
  outline: none;
}

.modal-hero-subtitle {
  color: var(--neutral-light);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.055rem;
  margin: 0;
}

.modal-hero-description {
  color: var(--neutral-light);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 1.15rem;
  line-height: 1.6rem;
  font-weight: 200;
  letter-spacing: 0.0625rem;
  margin: 0;
}

.modal-stack-label {
  color: var(--neutral-light);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.0425rem;
  text-transform: capitalize;
  margin: 0 0 0.5rem 0;
}

.modal-stack-value {
  color: var(--neutral-light);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6rem;
  font-weight: 200;
  letter-spacing: 0.0625rem;
  text-transform: capitalize;
  margin: 0;
}

.modal-link {
  color: var(--primary-green);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.0625rem;
  text-transform: capitalize;
  text-decoration: none;
  cursor: pointer;
}

/* Navigation Section */
.modal-nav-label {
  color: var(--neutral-light);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 2.8125rem;
  font-weight: 100;
  letter-spacing: 0.9px;
  line-height: 1.3;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-nav-title {
  color: var(--neutral-light);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 6.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 0.8;
  margin: 0;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-nav-tags {
  color: var(--neutral-light);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 1.3125rem;
  font-weight: 400;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Close Button */
.modal-close-button {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(235, 235, 235, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--neutral-light);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background-color 0.2s ease;
}

.modal-close-button:hover {
  background-color: rgba(235, 235, 235, 0.2);
}

/* ================================= */
/* MODAL LAYOUT - STRUCTURAL         */
/* ================================= */

/* Hero Content Wrapper */
.modal-hero-content-wrapper {
  display: flex;
  width: 100%;
  gap: 2rem;
}

/* Gallery Images */
.modal-gallery-image {
  width: 100%;
  height: 100vh;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.modal-gallery-image-first {
  width: 100%;
  height: calc(100vh - 1rem);
  padding: 0;
  overflow: hidden;
  position: relative;
  transform-origin: center bottom;
  box-sizing: border-box;
}

/* Navigation Rows */
.modal-nav-row {
  height: 50vh;
  display: flex;
  width: 100%;
}

.modal-nav-button-wrapper {
  width: 50%;
  height: 100%;
  background-color: var(--primary-red);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 380ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-nav-image-wrapper {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ================================= */
/* RESPONSIVE                        */
/* ================================= */

/* Desktop Large: 1920px+ */
@media (min-width: 1920px) {
  /* Mantém valores base - sem alterações necessárias */
}

/* Desktop Padrão: 1440px - 1919px */
@media (min-width: 1440px) and (max-width: 1919px) {
  .modal-hero-tags {
    font-size: 1.125rem;
    letter-spacing: 0.045rem;
    line-height: 1rem;
  }

  .modal-hero-title {
    font-size: 6.75rem;
    letter-spacing: 0.155rem;
  }

  .modal-hero-subtitle {
    font-size: 1.375rem;
    letter-spacing: 0.055rem;
  }

  .modal-hero-description {
    font-size: 1.0rem;
    line-height: 1.6rem;
    letter-spacing: 0.0625rem;
  }

  .modal-stack-label {
    font-size: 1.0625rem;
    letter-spacing: 0.0425rem;
  }

  .modal-stack-value {
    font-size: 0.9rem;
    line-height: 1.6rem;
    letter-spacing: 0.0625rem;
  }

  .modal-link {
    font-size: 1.25rem;
    letter-spacing: 0.0625rem;
  }

  .modal-nav-label {
    font-size: 2.3rem;
    letter-spacing: 0.9px;
  }

  .modal-nav-title {
    font-size: 4.9rem;
    letter-spacing: 2px;
  }

  .modal-nav-tags {
    font-size: 1rem;
    letter-spacing: 0.84px;
  }

  .modal-close-button {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}

/* Laptop: 1024px - 1439px */
@media (min-width: 1024px) and (max-width: 1439px) {
  .modal-hero-tags {
    font-size: 1rem;
    letter-spacing: 0.04rem;
  }

  .modal-hero-title {
    font-size: 5.75rem;
    letter-spacing: 0.135rem;
  }

  .modal-hero-subtitle {
    font-size: 1.21875rem;
    letter-spacing: 0.048rem;
  }

  .modal-hero-description {
    font-size: 0.9rem;
    letter-spacing: 0.05625rem;
    line-height: 1.3rem;
  }

  .modal-stack-label {
    font-size: 0.96875rem;
    letter-spacing: 0.03875rem;
  }

  .modal-stack-value {
    font-size: 0.8rem;
    letter-spacing: 0.05625rem;
    line-height: 1.3rem;
  }

  .modal-link {
    font-size: 1.125rem;
    letter-spacing: 0.05625rem;
  }

  .modal-nav-label {
    font-size: 2.46875rem;
    letter-spacing: 0.79px;
  }

  .modal-nav-title {
    font-size: 3.46875rem;
    letter-spacing: 1.75px;
  }

  .modal-nav-tags {
    font-size: 0.8rem;
    letter-spacing: 0.74px;
  }

  .modal-close-button {
    width: 44px;
    height: 44px;
    font-size: 1.375rem;
  }
}

/* Tablet Landscape: 768px - 1023px */
@media (max-width: 1023px) and (min-width: 768px) {
  .modal-hero-tags {
    font-size: 0.875rem;
    letter-spacing: 0.035rem;
  }

  .modal-hero-title {
    font-size: 5.75rem;
    letter-spacing: 0.115rem;
  }

  .modal-hero-subtitle {
    font-size: 1.0625rem;
    letter-spacing: 0.0425rem;
  }

  .modal-hero-description {
    font-size: 1rem;
    letter-spacing: 0.05rem;
  }

  .modal-stack-label {
    font-size: 0.875rem;
    letter-spacing: 0.035rem;
  }

  .modal-stack-value {
    font-size: 1rem;
    letter-spacing: 0.05rem;
  }

  .modal-link {
    font-size: 1rem;
    letter-spacing: 0.05rem;
  }

  .modal-nav-label {
    font-size: 2.125rem;
    letter-spacing: 0.68px;
  }

  .modal-nav-title {
    font-size: 4.6875rem;
    letter-spacing: 1.5px;
  }

  .modal-nav-tags {
    font-size: 1rem;
    letter-spacing: 0.64px;
  }

  .modal-close-button {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  /* Layout adjustments */
  .modal-hero-content-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .modal-gallery-image {
    height: 60vh;
    min-height: 60vh;
  }

  .modal-gallery-image-first {
    height: 60vh;
    min-height: 60vh;
  }
}

/* Tablet Portrait: 600px - 767px */
@media (max-width: 767px) {
  .modal-hero-tags {
    font-size: 0.75rem;
    letter-spacing: 0.03rem;
  }

  .modal-hero-title {
    font-size: 3.875rem;
    letter-spacing: 0.0775rem;
  }

  .modal-hero-subtitle {
    font-size: 0.90625rem;
    letter-spacing: 0.036rem;
  }

  .modal-hero-description {
    font-size: 0.875rem;
    letter-spacing: 0.04375rem;
  }

  .modal-stack-label {
    font-size: 0.78125rem;
    letter-spacing: 0.03125rem;
  }

  .modal-stack-value {
    font-size: 0.875rem;
    letter-spacing: 0.04375rem;
  }

  .modal-link {
    font-size: 0.875rem;
    letter-spacing: 0.04375rem;
  }

  .modal-nav-label {
    font-size: 1.40625rem;
    letter-spacing: 0.45px;
  }

  .modal-nav-title {
    font-size: 3.125rem;
    letter-spacing: 1px;
  }

  .modal-nav-tags {
    font-size: 0.65625rem;
    letter-spacing: 0.42px;
  }

  .modal-close-button {
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }

  /* Layout adjustments */
  .modal-hero-content-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .modal-gallery-image {
    height: 50vh;
    min-height: 50vh;
  }

  .modal-gallery-image-first {
    height: 50vh;
    min-height: 50vh;
  }

  .modal-nav-row {
    height: auto;
    flex-direction: column;
  }

  .modal-nav-button-wrapper {
    width: 100%;
    height: 50vh;
    padding: 1.5rem;
  }

  .modal-nav-image-wrapper {
    width: 100%;
    height: 50vh;
  }
}

/* Mobile Large: 480px - 599px */
@media (max-width: 599px) {
  .modal-hero-tags {
    font-size: 0.6875rem;
    letter-spacing: 0.0275rem;
  }

  .modal-hero-title {
    font-size: 3.25rem;
    letter-spacing: 0.065rem;
  }

  .modal-hero-subtitle {
    font-size: 0.8125rem;
    letter-spacing: 0.0325rem;
  }

  .modal-hero-description {
    font-size: 0.8125rem;
    letter-spacing: 0.040625rem;
  }

  .modal-stack-label {
    font-size: 0.71875rem;
    letter-spacing: 0.02875rem;
  }

  .modal-stack-value {
    font-size: 0.8125rem;
    letter-spacing: 0.040625rem;
  }

  .modal-link {
    font-size: 0.8125rem;
    letter-spacing: 0.040625rem;
  }

  .modal-nav-label {
    font-size: 1.21875rem;
    letter-spacing: 0.39px;
  }

  .modal-nav-title {
    font-size: 2.65625rem;
    letter-spacing: 0.85px;
  }

  .modal-nav-tags {
    font-size: 0.578125rem;
    letter-spacing: 0.37px;
  }

  .modal-close-button {
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  /* Layout adjustments */
  .modal-hero-content-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .modal-gallery-image {
    height: 40vh;
    min-height: 40vh;
  }

  .modal-gallery-image-first {
    height: 40vh;
    min-height: 40vh;
  }

  .modal-nav-row {
    height: auto;
    flex-direction: column;
  }

  .modal-nav-button-wrapper {
    width: 100%;
    height: 40vh;
    padding: 1.25rem;
  }

  .modal-nav-image-wrapper {
    width: 100%;
    height: 40vh;
  }
}

/* Mobile Padrão: 360px - 479px */
@media (max-width: 479px) {
  .modal-hero-tags {
    font-size: 0.625rem;
    letter-spacing: 0.025rem;
  }

  .modal-hero-title {
    font-size: 2.625rem;
    letter-spacing: 0.0525rem;
  }

  .modal-hero-subtitle {
    font-size: 0.71875rem;
    letter-spacing: 0.02875rem;
  }

  .modal-hero-description {
    font-size: 0.75rem;
    line-height: 1rem;
    letter-spacing: 0.0375rem;
  }

  .modal-stack-label {
    font-size: 0.65625rem;
    letter-spacing: 0.02625rem;
  }

  .modal-stack-value {
    font-size: 0.75rem;
    letter-spacing: 0.0375rem;
  }

  .modal-link {
    font-size: 0.75rem;
    letter-spacing: 0.0375rem;
  }

  .modal-nav-label {
    font-size: 1.03125rem;
    letter-spacing: 0.33px;
  }

  .modal-nav-title {
    font-size: 2.1875rem;
    letter-spacing: 0.7px;
  }

  .modal-nav-tags {
    font-size: 0.50625rem;
    letter-spacing: 0.32px;
  }

  .modal-close-button {
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  /* Layout adjustments */
  .modal-hero-content-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-gallery-image {
    height: 35vh;
    min-height: 35vh;
  }

  .modal-gallery-image-first {
    height: 35vh;
    min-height: 35vh;
  }

  .modal-nav-row {
    height: auto;
    flex-direction: column;
  }

  .modal-nav-button-wrapper {
    width: 100%;
    height: 35vh;
    padding: 1rem;
  }

  .modal-nav-image-wrapper {
    width: 100%;
    height: 35vh;
  }
}

/* Mobile Small: 375px e abaixo */
@media (max-width: 375px) {
  .modal-hero-tags {
    font-size: 0.5625rem;
    letter-spacing: 0.0225rem;
  }

  .modal-hero-title {
    font-size: 2rem;
    letter-spacing: 0.04rem;
  }

  .modal-hero-subtitle {
    font-size: 0.625rem;
    letter-spacing: 0.025rem;
  }

  .modal-hero-description {
    font-size: 0.6875rem;
    letter-spacing: 0.034375rem;
  }

  .modal-stack-label {
    font-size: 0.59375rem;
    letter-spacing: 0.02375rem;
  }

  .modal-stack-value {
    font-size: 0.6875rem;
    letter-spacing: 0.034375rem;
  }

  .modal-link {
    font-size: 0.6875rem;
    letter-spacing: 0.034375rem;
  }

  .modal-nav-label {
    font-size: 0.84375rem;
    letter-spacing: 0.27px;
  }

  .modal-nav-title {
    font-size: 1.71875rem;
    letter-spacing: 0.55px;
  }

  .modal-nav-tags {
    font-size: 0.434375rem;
    letter-spacing: 0.28px;
  }

  .modal-close-button {
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }

  /* Layout adjustments */
  .modal-hero-content-wrapper {
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-gallery-image {
    height: 30vh;
    min-height: 30vh;
  }

  .modal-gallery-image-first {
    height: 30vh;
    min-height: 30vh;
  }

  .modal-nav-row {
    height: auto;
    flex-direction: column;
  }

  .modal-nav-button-wrapper {
    width: 100%;
    height: 30vh;
    padding: 0.75rem;
  }

  .modal-nav-image-wrapper {
    width: 100%;
    height: 30vh;
  }
}