@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Poppins",  sans-serif;
}

:root {
    --darkblue: #141720;
    --lightblue: #53627d;
    --lightgray: #8d8d8d;
    --offwhite: #f9f7f2;
    --offgray: #e0e0e0;
}

body {
    background-color: var(--offwhite);
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h3{
    font-weight: 500;
    overflow-wrap: anywhere;
}

a {
    text-decoration: none;
    color: var(--darkblue);
    cursor: pointer;
}

p {
    font-size: clamp(1rem, 2vw, 1.5rem);
}

img {
    display: block;
    max-width: 100%;
}

.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 50px;
    background-color: white;
}

header a {
    text-decoration: none;
    color: var(--darkblue);
    font-weight: bold;
    font-size: 32px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 400;
}

nav li {
    display: flex;
    color: var(--lightgray);
}

nav li:hover {
    color: var(--darkblue);
    cursor: pointer;
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background-color: var(--offwhite);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background-color: var(--darkblue);
    border-radius: 999px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-content-wrapper {
    display: block;
    background-color: var(--offwhite);
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
}

/* Button */

.dark {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--darkblue);
    border-radius: 100px;
    font-size: 16px;
    padding: .5rem 1.5rem ;
    text-align: center;
    font-weight: 300;
    border: none;
    transition: background-color 0.4s;
}

.outline {
    display: flex;
    align-items: center;
    border-radius: 5px;
    border: 2px solid var(--lightblue);
    font-size: 16px;
    padding: .5rem 1rem ;
    text-align: center;
    font-weight: 300;
    background-color: white;
}

a.dark,
.dark a { 
    font-weight: 200;
    color: var(--offwhite);
    text-decoration: none;
}

.dark:hover {
    background-color: var(--lightblue);
}

/* Font Size */

.xlg {
    line-height: 1;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 500;
}
.lg {
    line-height: 1.1;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
}

.lg-gray {
    line-height: 1.15;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 500;
    color: #25806f;
}

.sm-gray {
    font-size: clamp(1.05rem, 2.5vw, 1.5rem);
    color: var(--lightgray);
}

.xsm {
    margin-top: 5px;
    font-size: 1rem;
    font-weight: 200;
}

.med {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5rem;
}

.sm-white {
    font-size: clamp(1.05rem, 2.5vw, 1.5rem);
    color: var(--offwhite);
    font-weight: 200;
    margin-bottom: 10px;
}

/* Hero */

.hero {
    display: grid;
    align-items: center;
    padding: 0 clamp(1rem, 4vw, 2rem);
    margin: 0;
    background:
        linear-gradient(rgba(20, 23, 32, 0.42), rgba(20, 23, 32, 0.42)),
        url(../img/pexels-nutrisense-inc-683752192-17947736.jpg) no-repeat center center/cover;
    min-height: clamp(620px, 85vh, 800px);
}

.hero-text {
    color: var(--offwhite);
    display: grid;
    justify-items: start;
    padding-left: clamp(0rem, 8vw, 80px);
    max-width: 600px;
    gap: 1rem;
}


/* Learn More */

.grid-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    margin: clamp(4rem, 10vw, 10rem);
    gap: clamp(2rem, 6vw, 5rem);
}

.grid-start {
    display: grid; 
    gap: 1.5rem;
    justify-items: start;
}

.main-img {
    height: clamp(360px, 55vw, 600px);
    width: 100%;
    min-width: 0;
    border-radius: 20px;
    background: url(/img/top-view-assortment-healthy-bowl-cereals-with-empty-screen-smartphone.jpg) no-repeat center center/cover;
}

/* Join HealthSync */

.flex-col-center-start {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    background-color: var(--darkblue);
    padding: clamp(2rem, 6vw, 5rem);
    background: url(../img/pexels-mart-production-8165404.jpg) no-repeat center center/cover ;
    min-height: clamp(560px, 75vh, 800px);
    margin: 0 clamp(1rem, 10vw, 10rem) 3rem;
    border-radius: 10px;
}

.grid_text {
    display: grid;
    color: var(--offwhite);
    justify-items: start;
    padding: 20px;
    max-width: 710px;
    gap: 2rem;
}

.flex-col-center-start li {
    margin-left: 1.2rem;
}


/* Meet HealthSync */

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-center {
    display: grid;
    justify-items: center;
    padding: clamp(1rem, 3vw, 20px);
    margin: 0 clamp(1rem, 10vw, 10rem);
    gap: 2rem;
    text-align: center;
}

.grid-center span {
    color: var(--lightgray);
    font-size: 1.5rem;
}

.meet-img {
    height: clamp(360px, 55vw, 600px);
    width: min(850px, 100%);
    min-width: 0;
    border-radius: 20px;
    background: url(/img/phone_mockup.png) no-repeat center center/cover;
}

/* FAQ */

.flex-col {
    display: flex;
    flex-direction: column;
}


.grid-l {
    display: grid;
    justify-content: center;
    justify-items: left;
    padding: clamp(1rem, 3vw, 20px);
    margin: 2rem clamp(1rem, 10vw, 10rem);
    gap: 2.5rem;
}

.grid-l span {
    font-size: 1.5rem;
    color:var(--lightgray);
    margin-bottom: -35px;
}

.faq-cont {
    background-color: var(--darkblue);
    padding: 2rem;
    border-radius: 10px;
    color:var(--offwhite);
    width: 100%;
    max-width: 1024px;
    cursor: pointer;
}

.faq-text {
    font-weight: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background-color: transparent;
    color: var(--offwhite);
    text-align: left;
    cursor: pointer;
}

.faq-answer {
    display: none;
    margin-top: 10px;
    gap: 10px;
}

.faq-cont.open .faq-answer {
    display: flex;
    flex-direction: column;
}

.faq-text .sm-white {
    margin-bottom: 0;
}

.hidden {
    display: none;
}

.faq-arrow {
    margin-left: 20px;
    color: var(--offgray);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-cont.open .faq-arrow {
    transform: rotate(180deg);
}


/* Plans Page */

.grid-col-mt {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 50px);
    margin: 4rem clamp(1rem, 8vw, 6rem) 3rem;
}

.grid-col-at-mb {
    display: grid;
    grid-template-columns: repeat(1, 10px 1fr);
    align-items: start;
    gap: 20px;
    margin-bottom: 10px;
}

.grid-col-at-mb span {
    font-size: 1rem;
    color: var(--lightgray);
    margin: -5px;
}

.prod_img {
    height: clamp(360px, 55vw, 600px);
    width: min(600px, 100%);
    min-width: 0;
    border-radius: 10px;
    background: url(/img/pexels-nutrisense-inc-683752192-17947729.jpg) no-repeat center center/cover;
}

.mw400 {
    max-width: 400px;
}

.mw400 h1 {
    font-size: 2.5rem;
    margin-top: -10px;
    margin-bottom: 10px;
}

.mw400 p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Plan */

.grid-col-pt {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    padding-top: 20px;
    gap: 30px;
}

.grid-col-pt li {
    margin-top: 1rem;
    font-size: 14px;
    list-style-type: none;
}

.grid-col-pt i {
    margin-right: 10px;
}

.box {
    border: 1px solid var(--lightgray);
    padding: 25px 20px;
    border-radius: 10px;
    background-color: #ffffff;
}

.box:hover {
    border: 1px solid #0fa7ff;
    background-color: #e4f3ffd4;
    transition: 0.4s;
}

.flex-row-sb{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 1.3rem;
}

.grid-col-1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

.divider {
    background-color: #dbdbdb;
    height: 1px;
}

/* Blog */

.grid-col-4-mt {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    margin: 0 clamp(1rem, 8vw, 10rem) 5rem;
}

.card {
    min-width: 0;
}

.img-card {
    margin-bottom: -7px;
}

.img-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.grid-col-p20 {
    display: grid;
    border: 1px solid var(--offgray);
    border-radius: 0 0 10px 10px;
    padding: 20px;
    background-color: #ffffff;
}

.grid-col-m {
    display: grid;
    justify-items: left;
    padding: clamp(1rem, 3vw, 20px);
    margin: 2rem clamp(1rem, 8vw, 10rem);
}

.grid-col-m span {
    font-size: 1.5rem;
    color:var(--lightgray);
}

.cat-btn{
    border: 1px solid var(--lightgray);
    padding: 5px 10px;
    border-radius: 5px; 
    color: var(--darkblue);
}

.cat-btn-dark {
    background-color: var(--offgray);
    padding: 5px 10px;
    border-radius: 3px; 
    color: var(--darkblue);
    font-size: 12px;
    font-weight: 500;
}

.flex-cat {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
}

/* Article */

.blog-hero {
    display: grid;
    margin: 0;
}

.blog-text {
    display: flex;
    flex-direction: column;
    justify-items: center;
    text-align: center;
    margin: clamp(3rem, 8vw, 5rem) auto 3rem;
    padding: 0 clamp(1rem, 8vw, 5rem);
    max-width: 1100px;
}

.blog-hero img {
    width: 100%;
    height: clamp(320px, 50vw, 500px);
    object-fit: cover;
}

.blog-article {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 6vw, 3rem);
    min-width: 0;
    max-width: 1024px;
    margin-bottom: 3rem;
}

/* Media Queries */

@media (max-width: 850px) {

    .header-content {
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
        padding: 20px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-top: 1rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li,
    .nav-links a {
        width: 100%;
        justify-content: center;
    }

    .hero-text {
        text-align: center;
        justify-items: center;
    }

    .grid-col {
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
        margin: 5rem 2rem;
    }

    .grid-start {
        text-align: center;
        justify-items: center;
    }

    .flex-col-center-start  {
        align-items: center;
        margin: 5rem 2rem;
    }

    .grid-col-4-mt {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 2rem 5rem;
    }

    .grid-col-mt {
        justify-items: center;
        grid-template-columns: repeat(1, 1fr);
        margin: 4rem 2rem;
    }

    .mw400 {
        width: 100%;
        max-width: 600px;
        min-width: 0;
    }

    .grid-center,
    .grid-l,
    .grid-col-m,
    .blog-text,
    .blog-article {
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

@media (max-width:560px) {

    p {
        font-size: 18px;
    }

    header a {
        font-size: 26px;
    }

    .header-content {
        flex-direction: row;
    }

    .nav-links {
        align-items: stretch;
    }

    .hero {
        justify-items: center;
        padding: 0;
        min-height: 500px;
    }

    .hero-text {
        text-align: center;
        justify-items: center;
        max-width: calc(100vw - 2rem);
        padding-left: 0 ;
        padding-inline: 1rem;
    }
    
    .grid-col {
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
        margin: 4rem 1rem;
        gap: 2rem;
    }

    .grid-col-m {
        margin: 2rem 1rem;
    }
    
    .grid-col-4-mt {
        grid-template-columns: repeat(1, 1fr);
        min-width: 0;
        margin: 0 1rem 3rem;
    }

    .mw400 {
        width: 100%;
        max-width: 400px;
        min-width: 0;
    }

    .blog-article{
        padding: 0;
        margin: 0 1rem 3rem;
        gap: 30px;
    }

    .blog-text {
        margin: 3rem 1rem;
        padding: 0;
    }

    .xlg {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
        line-height: 1;
    }

    .flex-col {
        padding: 0 20px;
    }

    .grid_text {
        padding: 0 1rem;
    }

    .grid-center {
        margin: 0 1rem;
        padding: 0;
    }

    .grid-l {
        margin: 2rem 1rem;
        padding: 0;
    }

    .faq-cont {
        padding: 1.25rem;
    }

    .faq-text {
        gap: 1rem;
    }

    .flex-col-center-start {
        margin: 4rem 1rem;
        padding: 0 1rem;
    }

    .flex-cat {
        flex-wrap: wrap;
    }

    .main-img,
    .meet-img,
    .prod_img {
        width: 100%;
        height: clamp(300px, 85vw, 420px);
    }
}

@media (max-width: 420px) {

    .header-content {
        padding: 16px;
    }

    header a {
        font-size: 23px;
    }

    .grid-col {
        margin: 3rem 1rem;
    }

    .flex-row-sb {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .box {
        padding: 20px 16px;
    }

    .blog-hero img {
        height: 280px;
    }
}   

/* 

Throughout the site, I utilized flexbox and CSS grid to create a dynamic layout. I tried to be as effective with my code, so I reused a certain values throughtout. 

Below are some examples of my coding choices.

In the header content, I used flex-direction row to nicely space out all my navigation links, making them easy to access.

For the homepage layout, I designed a full-width hero section using flexbox, while I applied a grid layout for the main text to justify the items effectively.

When working on the "Think About Nutrition" section, I implemented a grid-template-column to display two content blocks side by side, enhancing the visual flow.

In the "Start Today" section, I used a flex-direction: column layout and centered the text vertically to create a balanced look.

For the "Meet HealthSync" section, I used a grid to center the content in the middle.

On the Plan page, I implemented a 2 grid-template-column to place the content side by side, and used flexbox with my box class to ensure the content was spaced evenly between.

For the resourse page, I implemented a 3 grid-template-column, allowing me to space out all the article cards evenly.

*/