/* ----------------------
   General Reset & Fonts
---------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sarina&family=Young+Serif&display=swap" rel="stylesheet');

:root {
    --dark-green: #153828;
    --color-primary: #42644B;
    --color-secondary: #809076;
    --color-tertiary: #8A6440;
    --color-accent: #F8D794;
    --color-accent-green: #42594a;
    --light-bg: #f4f1e8;
    --light-green-bg: #eceee3;
    --inertia-teal: #12866d;
    --button-brown: #6c3c20;
    --bg-brown: #865031;
    --light-brown: #9d6b45;
    --yellow-brown: #eece8e;
    --highlight: #c3ddce;
    --gray-border: #e4decd;
}

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--dark-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-x: hidden;
    box-sizing: border-box;

}

p {
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
    font-size: 1rem;
}

h1 {
    font-family: "Young Serif", sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0;
}

h4 {
    color: white;
    width: fit-content;
    padding: 0 6px;
}

h5 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-green);
}

.bold {
    font-weight: 700;
}

button {
    font-size: 1.2rem;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: fit-content;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.3);
    padding: 16px 22px;
}

.hidden {
    display: none;
}

.burger {
    display: none;
    /* hidden by default */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Open state for animation */
.burger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ----------------------
   Main Sections
---------------------- */


header {
    height: 70px;
    display: flex;
    flex-direction: row;
    width: 100vw;
    justify-content: start;
    border-bottom: 3px solid var(--gray-border);

}

.header-div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 30%;
    gap: 20%;
    min-width: 300px;
}

.header-div h5 {
    cursor: pointer;
    text-wrap: nowrap;
}

.header-div h5:hover {
    border-bottom: 1px solid var(--gray-border);
}

.nav {
    width: 30%;
    display: flex;
    flex-direction: row;
    min-width: 400px;
}

/* Make nav links inherit text styling */
.nav-link {
    text-decoration: none;
    color: inherit;
}

/* Optional: ensure layout consistency */
.nav-link h5 {
    margin: 0;
    cursor: pointer;
}

/* Make the logo link behave like the image */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

/* Ensure the logo inside behaves the same as before */
.logo-link .logo {
    margin-left: 10%;
    height: 80%;
}


.main-1 {
    z-index: 0;
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    /* allows wrapping on smaller screens */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.main-1-text {
    width: 50%;
    margin-top: 50px;
}

.main-1 h1 {
    font-size: 4.5rem;
}

.launch-title {
    margin-top: 30px;
}

.wealth {
    position: relative;
    display: inline-block;
    z-index: 3;
}

.oval {
    position: absolute;
    width: 110%;
    transform: translate(-5px, -15px);
    height: 105%;
    z-index: -1;
}

.title {
    box-shadow: 0 0 100px 100px var(--light-bg);
    background-color: var(--light-bg);
}




.main-1-btn {
    color: white;
    background-color: var(--button-brown);
    margin-top: 50px;
}

.join-us {
    color: var(--inertia-teal);
    font-size: 2rem;
    font-family: "Sarina", sans-serif;
}

.cards-img {
    position: absolute;
    top: 0%;
    height: 50%;
    width: 100vw;
    max-width: 1500px;
    min-width: 600px;
    max-height: none;
    opacity: .8;
    object-fit: fill;
    pointer-events: none;
    z-index: -1;
    overflow: visible;
}

.main-2 {
    width: 100vw;
    background-color: var(--light-green-bg);
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    padding: 8vh 2rem;
    gap: 10rem;
}


.main-2-left {
    z-index: 2;
    width: 30%;
    margin-left: 10%;
    max-width: 700px;
    /* border: 1px solid red; */
}

.main-2-left h1 {
    text-align: left;
}

.main-2-left>p {
    text-align: justify;
    margin-top: 24px;
}

.main-2-right {
    width: 70%;
    max-width: 900px;
    margin-right: 5%;

    /* border: 1px solid blue; */
}


.phone-img {
    width: 100%;
    /* border: 1px solid red; */
    border-radius: 20px
}


.teal-span {
    color: var(--inertia-teal)
}

.highlight {
    background-color: var(--highlight);
    padding: 1px 4px;
}

.main-3 {
    width: 80%;
    max-width: 1400px;
    background-color: var(--light-bg);
    padding: 8vh 2rem;
    display: flex;
    flex-direction: column;
    min-height: 50vh;

}

.main-3-boxes {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
}

/* Each box */
.main-3-box {
    width: 300px;
    /* consistent size */
    border-radius: 18px;
    padding: 32px 16px;
    border: 1px solid var(--gray-border);
    background-color: var(--light-bg);
}

.main-3-box p {
    padding: 0;
}

.main-3-box:hover {
    background-color: #eeeade;
}

.main-4 {
    width: 100vw;
    color: white;
    background-color: var(--bg-brown);
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top: 80px;
    gap: 10rem;

}

.main-4 h1 {
    font-size: 2.5rem;
    font-weight: 100;
    letter-spacing: .1.5rem;
}

.main-4-left {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30%;
    /* margin-left: 20%; */
    text-align: left;
}

.main-4-right {
    display: flex;
    flex-direction: column;
    /* justify-content: space-around; */
    width: 30%;
    text-align: left;
    margin-top: 100px;
}

.main-4-item * {
    margin: 0;
}

.main-4-item {
    margin-bottom: 20px;
}

.main-4 h4 {
    background-color: var(--light-brown);
}


.main-4-right-mobile {
    display: none;
}

form {
    color: white;
    /* padding: 32px; */
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: 60px;
    margin-top: 60px;
}

label {
    font-size: 1.2rem;
    text-align: left;
    font-weight: 500;
}

#referral-field {
    text-align: left;
}

input {
    padding: 12px;
    border: none;
    border-bottom: 2px solid white;
    /* white underline */
    border-radius: 8px 8px 0 0;
    /* keeps rounded top only */
    background-color: var(--bg-brown);
    font-size: 1.2rem;
    width: 100%;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    color: white;
    outline: none;
    /* removes blue highlight */
}

/* White placeholder */
input::placeholder {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    /* slightly transparent white for better aesthetics */
}

form>button {
    background-color: var(--yellow-brown);
    color: var(--bg-brown);
    width: fit-content;
    margin-left: auto;
    font-weight: 700;

}

select {
    padding: 12px;
    border: none;
    border-bottom: 2px solid white;
    border-radius: 8px 8px 0 0;
    background-color: var(--bg-brown);
    font-size: 1.2rem;
    width: 100%;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    color: white;
    outline: none;
    appearance: none;
    /* removes default arrow styling */
    background-image: url("data:image/svg+xml;utf8,<svg fill='rgba(255,255,255,0.8)' height='28' viewBox='0 0 24 24' width='28' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

select:hover {
    background-color: #9a6d46;
}

select:focus {
    border-bottom: 2px solid var(--color-accent);
}

select option {
    background-color: var(--color-tertiary);
    color: white;
    font-size: 20px;
}




footer {
    color: white;
    background-color: var(--bg-brown);
    width: 100vw;
    min-height: 100px;

}

footer>h4 {
    margin: 0 auto;
}



/* ----------------------
   Media Queries
---------------------- */

/* Tablets */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1.3rem;
    }

    .burger {
        display: flex;
        margin-right: 20px;
    }

    .nav {
        position: absolute;
        top: 70px;
        right: 0;
        background-color: var(--light-bg);
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem 0;
        border-bottom: 3px solid var(--gray-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-200%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 1000;
        margin: 0 auto;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .header-div {
        justify-content: space-between;
        width: 100%;
    }

    .nav-link h5 {
        font-size: 1.2rem;
    }

    .main-1-left,
    .main-1-right {
        text-align: center;
        align-items: center;
    }

    .main-1-text {
        width: 80%;
    }

    .main-2 {
        flex-direction: column;
    }

    .main-2-right {
        width: 90%;
        margin: 0 auto;
    }

    .main-2-left {
        width: 90%;
        margin: 0 auto;

    }

    .main-2 h1 {
        text-align: center;
    }

    .main-3-boxes {
        margin-top: 0;
    }

    .main-3-box {
        flex: 1 1 calc(50% - 2rem);
    }

    .main-4 {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-4-left {
        text-align: center;
        margin-bottom: 0;
        width: 90%;
        align-items: center;
    }


    .main-4-right {
        text-align: center;
        margin-top: 0;
        width: 100%;
        /* border: 1px solid; */
    }

    .main-4-right-web {
        display: none;
    }

    .main-4-right-mobile {
        display: block;
        margin-top: 20px;
    }

    .main-4 h4 {
        text-align: center;
        margin: 0 auto;
        font-size: larger;
        font-weight: 500;
    }

    /* White placeholder */
    input::placeholder {
        font-size: 24px;
    }


    form>button {
        width: 80%;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .logo {
        margin: 0 auto;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1.1rem;
    }


    .main-2 {
        padding: 2rem 0;
    }

    .main-3 {
        padding: 2rem 0;
    }

    .main-3-box {
        flex: 1 1 100%;
        max-width: 85%;

    }

    .main-3-boxes {
        gap: 1rem;
    }

    .main-1 {
        flex-direction: column;
        padding: 4rem 0;

    }

    /* .phone-img {
        width: 50px;
        bottom: 12px;
    } */

    .question-mark {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.5rem;
    }

    .section-divider {
        width: 40px;
        margin: 2rem auto;
    }

    .main-4 {
        width: 100vw;
        gap: 0;

    }

    .main-4-left,
    .main-4-right {
        flex: 1 1 100%;
        width: 90%;
        /* text-align: center; */
    }

    .main-4-left>h1 {
        margin: 0 0 24px 0;
    }

    form {
        padding: 0;
    }

    /* White placeholder */
    input::placeholder {
        font-size: 28px;
    }

}