@import url('style.css');

:root {
    --landing-intro-ink: #1f1506;
    --landing-intro-muted: #444444;
    --landing-hero-background: url("../img/HomeBanner.png");
    --landing-about-border: rgba(31, 21, 6, 0.24);
    --landing-about-text: #444444;
}

html[data-theme="dark"] {
    --landing-hero-background: url("../img/HomeBannerDark.png");
    --landing-about-border: rgba(255, 255, 255, 0.28);
    --landing-about-text: #e7e5ef;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#about,
#contact {
    scroll-margin-top: 80px;
}

.nav-bar {
    width: 100%;
    height: 7vh;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background-color: #fefdff;
    box-shadow: 0px 0px 20px rgba(3, 6, 31, 0.1);
    z-index: 1000;
}
.nav-logo {
    justify-self: start;
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li:not(:last-child)::after {
    content: "|";
    margin: 0 20px;
    color: #999;
}

nav a {
    display: inline-block;
    text-decoration: none;
    color: var(--landing-intro-ink);
    font-weight: 500;
    font-size: 1.2rem;

    transition: transform 0.3s ease;
}

nav a:hover {
    transform: scale(1.05);
}

.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #bbb9e9, #fefdff);
}

.home-intro {
    box-sizing: border-box;
    width: min(42vw, 520px);
    position: absolute;
    left: clamp(24px, 12vw, 180px);
    top: clamp(120px, 20vh, 220px);
    margin-bottom: 2rem;
    z-index: 1;
}

.home-intro-first {
    margin: 0 0 .4rem;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    font-weight: 500;
    color: var(--landing-intro-ink);
}

.home-intro .home-intro-second {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.05;
    font-weight: 700;
    color: #1f1506;
}

.home-intro-third {
    margin: .8rem 0 0;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    color: var(--landing-intro-muted);
}

.home-cta {
    position: absolute;
    left: 25%;
    top: clamp(330px, 42vh, 420px);
    display: flex;
    gap: 2rem;
    z-index: 1;
}

.home-cta a {
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    color: #fefdff;

    transition: background-color 0.3s ease,
                transform 0.3s ease;

}

#cadastro-link {
    background-color: #070135;
}

#login-link {
    background-color: #6e53e2;
}

.home-cta a:hover {
    background-color: #444444;
    transform: translateY(-3px);
}


.home-hero {
    margin: 0;
    padding: 0;
    width: 100%;
    height: clamp(500px, 44vw, 800px);
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: var(--landing-hero-background);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-section {
    width: 80%;
    margin: -100px auto 0;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10%;

    transform: scale(0.98);
    transition:
        transform 0.8s ease;
}

.home-section.active {
    transform: scale(1);
}

#about.home-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.home-section p {
    width: 60%;
    margin-top: 3rem;
    font-size: 1.2rem;
    line-height: 2;
    color: #444444;
    text-align: left;
}

#about .home-about-copy {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 12px;
}

#about .home-about-copy p {
    width: 100%;
    margin: 0;
    color: var(--landing-about-text);
}

#about .home-about-features {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

#about .home-about-article {
    padding: 1rem 0;
    border-bottom: 1px solid var(--landing-about-border);
}

#about .home-about-article:first-child {
    padding-top: 0;
}

#about .home-about-article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

#about .home-about-article-text {
    align-items: flex-start;
}

#about .home-about-article-text h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    text-align: left;
}

#about .home-about-article-text p {
    width: 100%;
    margin: 0;
    color: var(--landing-about-text);
    line-height: 1.6;
}

.home-section .home-support-email {
    width: auto;
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.home-support-email-copy {
    padding: 0;
    border: 0;
    background: transparent;
    color: #070135;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.home-support-email-copy:hover {
    color: #6e53e2;
}

.home-support-email-status {
    display: block;
    min-height: 1.5em;
    margin-top: 0.35rem;
    color: #070135;
    font-size: 0.9rem;
}

.landing-theme-toggle {
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 7px;
}

.nav-bar .theme-toggle.landing-theme-toggle {
    box-sizing: border-box;
    padding: 7px;
}

.landing-theme-icon {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.landing-theme-icon-bright,
html[data-theme="dark"] .landing-theme-icon-dark {
    display: none;
}

html[data-theme="dark"] .landing-theme-icon-bright {
    display: block;
}

.home-about-article{
    display: flex;
    align-items: center;
    width: 100%;
}

.home-about-article-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.home-about-article-text h3 {
    margin: 0 0 1rem;
    font-size: clamp(1.65rem, 2.5vw, 2.1rem);
    line-height: 1.2;
    color: #1f1506;
    text-align: center;
}

.home-about-article-text p {
    flex: 1;    
}

.home-footer {
    margin-bottom: 0;
    width: 100%;
    height: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fefdff;
}

@media (max-width: 1150px) {
    .home-intro {
        width: min(48vw, 380px);
        left: 6%;
        top: clamp(85px, 14vh, 130px);
    }

    .home-hero {
        flex: 0 0 auto;
        height: clamp(320px, 66vw, 500px);
    }

    .home-section {
        margin-top: 0;
    }

    .home-cta {
        top: clamp(270px, 42vw, 360px);
    }

    .home-intro-second {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .home-section {
        width: 88%;
        padding: clamp(1.25rem, 5vw, 3rem);
    }

    .home-section > p {
        width: 90%;
    }

    #about.home-section {
        gap: 1.5rem;
    }

}

@media (max-width: 520px) {
    .home-intro {
        width: 88%;
        left: 5%;
        top: clamp(70px, 12vh, 100px);
        text-align: center;
    }

    .home-intro-first {
        font-size: 1rem;
    }

    .home-intro-second {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .home-intro-third {
        font-size: .9rem;
    }

    .home-hero {
        height: clamp(260px, 82vw, 340px);
    }

    .home-cta {
        top: clamp(230px, 62vw, 280px);
        left: 50%;
        gap: clamp(8px, 3vw, 16px);
        transform: translateX(-50%);
    }

    .home-about-article {
        flex-direction: column;
        gap: 1rem;
    }

    #about.home-section {
        grid-template-columns: minmax(0, 1fr);
    }

    #about .home-about-copy {
        padding: 1.25rem;
    }
}

html[data-theme="dark"] .home-intro-first,
html[data-theme="dark"] .home-intro-second {
    color: #fff;
}