.header-mobile {
    display: none;
}

.header-mobile__image {
    cursor: pointer;
}

.mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    transition: left 0.5s ease-in-out;
    z-index: 999;
}

.mobile.active {
    left: 0;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.close-menu__image {
    width: 3rem;
    height: auto;
}

.header-exit {
    display: block;
}

.header-exit__image {
    width: 3rem;
    cursor: pointer;
}

.mobile-menu {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-menu__content {
    list-style: none;
    padding: 0;
}

.mobile-menu__list {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-menu__link {
    text-decoration: none;
    color: var(--color-white);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.mobile-menu__link:hover {
    color: var(--color-mint-medium);
    text-decoration: underline;
    text-decoration-color: var(--color-mint-medium);
    text-decoration-thickness: 0.2rem;
    text-underline-offset: 0.5rem;
}

.sgp-header {
    align-items: center;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    height: 6.5rem;
    justify-content: space-between;
    padding: 1rem 3rem;
    position: static;
    width: 100%;
}

.sgp-header__brand {
    align-items: center;
    display: flex;
}

.sgp-header__logo {
    height: 15rem;
    margin-left: -1rem;
    width: 15rem;
}

.sgp-header__vertical-line {
    background-color: var(--bg-tertiary);
    height: 4rem;
    margin-left: 2rem;
    width: 0.1rem;
}

.sgp-header__list {
    align-items: center;
    display: flex;
    gap: 3rem;
    list-style: none;
    padding: 0;
}

.sgp-header__link {
    color: var(--text-title);
    cursor: pointer;
    font-size: 1.7rem;
    font-weight: 500;
    transition: all 0.5s ease;
}

.sgp-header__link:hover {
    color: var(--text-button-hover);
}

.sgp-header__item {
    position: relative;
}

.sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: -8rem;
    background-color: var(--bg-secondary);
    min-width: 25rem;
    box-shadow: 0rem 0.8rem 1.6rem 0rem rgba(0,0,0,0.2);
    z-index: 10;
}

.sub-menu li a {
    display: block;
    padding: 1.5rem 2rem;
    color: var(--text-title);
    text-decoration: none;
    transition: all 0.6s ease;
}

.sub-menu li a:hover {
    background-color: var(--bg-tertiary);
}

.sgp-header__item:hover > .sub-menu {
    display: block;
}

.sgp-header__item:focus-within > .sub-menu {
    display: block;
}

.sgp-header__area-button {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 4rem;
}

.sgp-header__icon-exit {
    width: 3rem;
    margin-top: 0.7rem;
    cursor: pointer;
}

/* ==== USER MENU HEADER ==== */
.sgp-header__user {
  position: relative;
  display: inline-block;
  
}

.sgp-header__user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.5s ease;
  padding: 1rem;
  border-radius: 1rem;
}

.sgp-header__user-info:hover {
    background-color: var(--bg-nonary);
}

.sgp-header__user-name {
  font-weight: 500;
  color: var(--text-title);
  width: 100%;
  height: 100%;
}

.sgp-header__user-name:hover {
    color: var(--color-white);
    transition: all 0.2s ease;
}

.sgp-header__user-arrow {
  width: 2rem;
  height: 2rem;
  transition: transform 0.2s ease;
}

.sgp-header__user-menu {
  display: none;
  position: absolute;
  right: 0;
  background: var(--bg-secondary);
  box-shadow: 0 0.4rem 1rem rgba(0,0,0,0.15);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border-radius: 0.8rem;
  z-index: 1000;
  min-width: 12rem;
}

.sgp-header__user-menu.active {
  display: block;
}

.sgp-header__user-menu li {
  padding: 0.5rem 1rem;
}

.sgp-header__user-menu li a {
  text-decoration: none;
  color: var(--text-title);
  display: block;
}

.sgp-header__user-menu li a.logout {
  color: var(--color-red);
  font-weight: 600;
}

.sgp-header__user-icon {
    width: 2rem;
}


/* Light/dark Button */
.sgp-header__btn-light-dark {
    align-items: center;
    border: none;
    border-radius: 4rem;
    box-shadow:
        inset 0 0.8rem 6rem var(--shadow-primary),
        inset 0 0.8rem 0.8rem var(--shadow-primary),
        inset 0 -0.4rem 0.4rem var(--shadow-primary);
    cursor: pointer;
    display: flex;
    height: 3rem;
    justify-content: space-between;
    outline: none;
    padding: 0.5rem;
    position: relative;
    width: 5rem;
}

.sgp-header__rail-mode {
    align-items: center;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0.8rem 0.4rem var(--shadow-segundary);
    display: flex;
    height: 2rem;
    justify-content: center;
    position: absolute;
    transition: transform 0.2s ease-in;
    width: 2rem;
}

.sgp-header__img-light,
.sgp-header__img-dark {
    height: 1rem;
    width: 1rem;
}

.sgp-header__img-dark {
    display: none;
}

.dark-mode .sgp-header__btn-light-dark {
    box-shadow:
        inset 0 0.1rem 1rem var(--shadow-primary),
        inset 0 0.1rem 0.1rem var(--shadow-primary),
        inset 0 -0.4rem 0.4rem var(--shadow-primary);
}

.dark-mode .sgp-header__rail-mode {
    box-shadow: 0 0.8rem 6rem var(--shadow-primary);
    transform: translateX(2rem);
}

/* Main */
.sgp-main {
    height: calc(100% - 6.5rem);
    width: 100%;
}

.sgp-main__area {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    margin: 0 auto;
    max-width: 110rem;
    width: 100%;
}

.sgp-main__left {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2rem;
}

.sgp-main__title {
    color: var(--text-title);
    font-size: 4rem;
    font-weight: 500;
    margin-top: 2rem;
}

.sgp-main__text {
    color: var(--text-paragraph);
    font-size: 1.9rem;
    line-height: 3rem;
    width: 100%;
}

.sgp-main__button {
    background-color: var(--bg-button);
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.4rem 1rem var(--shadow-segundary);
    color: var(--text-button);
    cursor: pointer;
    font-size: 1.8rem;
    padding: 2rem;
    text-align: center;
    transition:
        background-color 0.3s ease,
        transform 0.4s ease;
    width: 21rem;
}

.sgp-main__button:hover {
    background-color: var(--bg-button-hover);
}

.sgp-main__button:active {
    box-shadow: 0 0.4rem 1rem var(--shadow-segundary);
    transform: translateY(0.5rem);
}

.sgp-main__right {
    flex: 1;
}

:is(.sgp-main__img-brand-black, .sgp-main__img-brand-white) {
    animation: brand-animation 2s ease-in forwards;
    margin-left: 4.3rem;
    max-width: 50rem;
    opacity: 0;
    transform: translateY(10rem);
    width: 100%;
}

.sgp-main__img-brand-white {
    display: none;
}

.footer {
    padding: 2rem;
    text-align: center;
}

.footer-description {
    margin-top: 2rem;
}

.footer-text {
    margin-bottom: 2rem;
}

@keyframes brand-animation {
    from {
        opacity: 0;
        transform: translateY(10rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media query */
/* 320px a 480px */
@media (min-width: 320px) and (max-width: 480px) {
    .sgp-header {
        padding: 1rem 2rem;
    }


    .sgp-header__logo {
        width: 8rem;
        height: auto;
    }
    .sgp-header__btn-light-dark {
        height: 3rem;
        width: 5rem;
        margin-left: 2rem;
    }
    .sgp-main__area {
        width: 80%;
    }
    .sgp-main__title {
        font-size: 2rem;
    }
    .sgp-main__text {
        font-size: 1.4rem;
        line-height: 2rem;
    }
    .footer {
        padding: 1rem;
    }

    .sgp-header__user {
        display: none;
    }

    .logout{
    color: var(--color-white);
    cursor: pointer;
    font-size: 1.7rem;
    font-weight: 500;
    transition: color 0.3s ease;
    }

    .logout:hover {
        color: var(--text-button-hover);
    }
}

/* 481px a 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .header-mobile__image {
        margin-right: 2rem;
    }

    .sgp-header {
        padding: 1rem 2rem;
    }

    .sgp-main__area {
        width: 80%;
    }

    .sgp-main__title {
        font-size: 2rem;
    }

    .sgp-main__text {
        font-size: 1.4rem;
        line-height: 2rem;
    }

    .footer {
        padding: 2rem;
    }

      .sgp-header__user {
        display: none;
    }

    .logout{
    color: var(--color-white);
    cursor: pointer;
    font-size: 1.7rem;
    font-weight: 500;
    transition: color 0.3s ease;
    }

    .logout:hover {
        color: var(--text-button-hover);
    }
}

/* 769px a 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-mobile__image {
        margin-right: 2rem;
    }

    .sgp-main__area {
        padding: 0rem 3rem;
    }

    .sgp-main__title {
        font-size: 2rem;
    }

    .sgp-main__text {
        font-size: 1.4rem;
        line-height: 2rem;
    }

    :is(.sgp-main__img-brand-black, .sgp-main__img-brand-white) {
        margin-left: 3rem;
    }

    .footer {
        padding: 2rem;
    }

      .sgp-header__user {
        display: none;
    }

    .logout{
    color: var(--color-white);
    cursor: pointer;
    font-size: 1.7rem;
    font-weight: 500;
    transition: color 0.3s ease;
    }

    .logout:hover {
        color: var(--text-button-hover);
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .header-mobile__image {
        margin-right: 2rem;
    }

    .sgp-main__area {
        padding: 0rem 3rem;
    }

    .sgp-main__title {
        font-size: 2rem;
    }

    .sgp-main__text {
        font-size: 1.4rem;
        line-height: 2rem;
    }

    :is(.sgp-main__img-brand-black, .sgp-main__img-brand-white) {
        margin-left: 3rem;
    }

    .mobile .sgp-header__item {
        margin-bottom: 3rem;
    }

    .footer {
        padding: 2rem;
    }

     .sgp-header__user {
        display: none;
    }

    .logout{
    color: var(--color-white);
    cursor: pointer;
    font-size: 1.7rem;
    font-weight: 500;
    transition: color 0.3s ease;
    }

    .logout:hover {
        color: var(--text-button-hover);
    }
}

@media (max-width: 1200px) {
    .sgp-header__menu {
        display: none;
    }

    .sgp-header__item {
        margin-bottom: 4rem;
    }

    .header-mobile {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: auto;
        margin-left: auto;
    }

    .header-mobile__image {
        display: block;
        width: 3rem;
    }
    
    .sgp-header__area-button {
        gap: 0;
        margin-left: 0;
    }

    .sgp-header__link {
        color: var(--color-white);
    }

    .mobile-menu__content {
        text-align: center;
    }
    
    .mobile .sgp-header__item {
        padding: 0;
        margin: 2rem 0;
        width: 100%;
    }

    /* CORREÇÃO DO SUB-MENU PARA ACORDEÃO NO MOBILE */
    .mobile .sub-menu {
        position: static;
        top: auto;
        left: auto;
        min-width: 100%;
        background-color: transparent;
        box-shadow: none;
        padding: 0 0 1rem 0;
    }

    .mobile .sub-menu li a {
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.7);
    }

	.mobile .sub-menu li a:hover {
		background-color: var(--bg-nonary);
	}

    .sgp-main__area {
        text-align: center;
    }

    .sgp-main__right {
        flex: 0;
    }

    .sgp-main__area-img {
        display: none;
    }
}
