/* global styles */
body{
    font-family: 'ibarra real nova', serif;
}

button {
    background-color: transparent;
    border: 1px solid black;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
}

button:hover {
    background-color: black;
    color: white;
    cursor: pointer;
}


/* navigation bar */
nav{
    display: flex;
    align-items: center;
    gap: 5px;
}
nav h1{
    font-size: 24px;
    line-height: normal;
    margin: 0;
}

/* --- title section --- */
.title-page{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 80px 0 140px 0;
}

.title {
    display: flex;
    flex-direction: row;
}

.title-text{
    width: 750px;
    margin-left: 20px;
}

.title img{
    object-fit: contain;
    width: 250px;
}

h1{
    margin: 0;
    font-family: "Canela Text";
    font-size: 188px;
    font-style: normal;
    font-weight: 400;
    line-height: 300px;
}


.title-subtext{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    align-self: stretch;
}

.title-subtext p{
    max-width: 400px;
    font-size: 24px;
}

.title-subtext h2{
    font-family: "Canela Text";
    font-size: 88px;
    font-style: italic;
    font-weight: 400;
    line-height: 77px;
    margin-top: auto;
    margin-bottom: auto;
}

/* --- steps section --- */
.steps-banner{
    display: flex;
    flex-direction: column;
    width: auto;
    background-color: black;
    color: white;
    padding: 30px 0 50px 0;
    gap: 20px;
}

.steps-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: center;
    width: 80%;
}

.steps-section h1{
    font-family: "Canela Text";
    font-size: 40px;
    margin: 0;
    line-height: normal;
    width: 80%;
    align-self: center;
}

.steps h2{
    font-family: "ibarra real nova", serif;
    font-size: 16px;
    margin: 0;
    line-height: normal;
    padding: 0.5rem 0;
}

.steps p{
    font-size: 16px;
    margin: 0;
    line-height: normal;

}

/* ---  WEEKLY GRIND SECTION --- */
.weekly-grind-section{
    margin: 100px auto;
    width: 80%;
}
.weekly-grind-section h1{
    font-size: 40px;
    margin: 0;
    line-height: 45px;
}

em{
    text-decoration: underline dotted;
}

.weekly-grind-container{
    margin-bottom: 40px;
}

/* --- menu & recipes section --- */
#menu-recipes{
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.menu{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    padding: 10px 0;
    gap: 20px;
    border: 1px solid black;
    border-radius: 10px;
}

.menu h2{
    margin: 0;
    line-height: normal;
    font-family: "Canela Text";
    font-weight: normal;
}

.menu h3{
    margin: 0;
    line-height: normal;
    white-space: nowrap;
    font-weight: 100;
}

.menu p{
    margin: 0;
    line-height: normal
}

.coffee-cat{
    width: 200px;
    object-fit: cover;
}

.menu-items{
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 20px;
}

.menu-item-name{
    display: flex;
    flex-direction: row;
    font-family: "ibarra real nova", serif;
    gap: 20px;
    align-items: center;
}

/* recipe section */

#recipes{
    --tab-bg: #ffffff;
    --tab-bg-active: black;
    --tab-text: black;
    --tab-text-active: white;
    margin-top: 0;
}

.menu li{
    margin: 0;
}

.tab-menu{
    margin: 0;
    padding: 0;
    gap: 5px;
    list-style: none;
    display: flex;
    align-items: end;
}

.tab-menu__button{
    appearance: none;
    background: var(--tab-bg);
    color: var(--tab-text);
    padding: 0.75rem 1rem;
    border-radius: 5px 5px 0 0;
    border-bottom: none;

    &.is-active{
        background: var(--tab-bg-active);
        color: var(--tab-text-active);
    }
}

.tab-recipe{
    display: none;
    border: 1px solid black;
    padding: 0 20px;
    border-radius: 0 10px 10px 10px;

    &.is-active{
        display: block;
    }
}


/* --- Footer --- */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px ;
    gap: 20px;
}

footer a{
    text-decoration: none;
    color: inherit;
    font-family: 'canela text', serif;
    font-size: 72px;
    margin: 0;
    line-height: 72px;
    text-align: center;
}


/* underline link animation */

.underline-link {
  position: relative;
  color: black; 
}

.underline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px; /* not sure why this is like this lol*/
  height: 2px;
  width: 0;                   /* start invisible */
  background-color: black;
  transition: width 0.4s ease-in-out; /* animation */
}

.underline-link:hover::after {
  width: 100%;               /* expand underline on hover */
}

/*media queries*/
@media (max-width: 900px){
    .title{
        align-items: start;
    }

    .title img{
        width: 150px;
        margin: 0;
    }

    .title-text{
        width: fit-content;
        margin: 0;
    }

    h1{
        font-size: 100px;
        line-height: 150px;
    }

    .title-subtext{
        gap: 10px;
    }

    .title-subtext p{
        max-width: 240px;
        font-size: 16px;
    }

    .title-subtext h2{
        font-size: 48px;
        line-height: 42px;
        white-space: nowrap;
        margin: 0;
    }

    .steps-container{
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }


    .steps-section h1{
        font-size: 32px;
        width: 80%;
        text-align: center;
    }

    .steps{
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .steps h2{
        font-size: 16px;
        font-weight: 500;
        text-align: right;
        justify-content: center;
        width: 120px;
    }

    .steps p{
        font-size: 16px;
        width: 250px;
        align-items: start;
        justify-content: center;
    }

    .weekly-grind-section{
        width: auto;
        margin: 50px 20px;
    }

    .weekly-grind-section h1{
        font-size: 32px;
        line-height: 36px;
    }

    #menu-recipes{
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .menu{
        width: fit-content;
    }

    .menu h2{
        font-size: 24px;
    }

    .menu h3{
        font-size: 18px;
    }

    .coffee-cat{
        width: 150px;
    }

    .menu-items{
        gap: 10px;
    }

    .menu-item-name{
        justify-content: center;
        gap: 10px;
    }

    #recipes{
        width: auto;
    }

    footer a{
        font-size: 48px;
        margin: 0;
        line-height: 48px;
    }
}

@media (max-width: 500px){
    .title{
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 330px;
        margin: auto;
    }

    h1{
        font-size: 72px;
        line-height: 100px;
        text-align: left;
    }

    .title img{
        margin: 0;
        width: 120px;
    }

    .title-subtext p{
        font-size: 14px;
        text-align: left;
    }

    .steps-container{
        width: 80%;
        align-items: start;
        text-align: start;
        gap: 25px;
    }

    .steps{
        flex-direction: column;
        align-items: start;
        text-align: start;
        margin: 0;
        gap: 0px;
    }

    .steps h2{
        font-size: 16px;
        margin: 0;
        line-height: 16px;
        text-align: start;
        width: auto;
        justify-content: start;
    }

    .steps p{
        font-size: 16px;
        line-height: 16px;
        margin: 0;
    }

    .menu{
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0 0 10px 0;
    }

    .menu-items{
        width: 100%;
        text-align: start;
        align-items: start;
    }



}