/* ===== VARIABLE CSS ===== */
@font-face {
    font-family: 'Gabriola';
    src:  url('Gabriola.woff') format('woff'),
        url('Gabriola.ttf') format('truetype');
}

:root{
    --header-height: 3.5rem; /* 56px */

    /* ===== COLORS ===== */
    --first-color: #F2B3BF;
    --first-color-light: #F2D0D7;
    --first-color-lighten: #faeef1;
    --title-color: #4e404c;
    --text-color: #131013;
    --text-color-light: #dad2d8;
    --body-color: /*#c4b8c3*/ /*#faeef1*/ #FFF;
    --container-color: #FFF;

    /* ===== FONT AND TYPOGRAPHY ===== */
    --big-font-size: 3rem; /* 2rem * 1.5 */
    --h1-font-size: 2.25rem; /* 1.5rem * 1.5 */
    --h2-font-size: 1.875rem; /* 1.25rem * 1.5 */
    --h3-font-size: 1.5rem; /* 1rem * 1.5 */
    --normal-font-size: 1.407rem; /* .938rem * 1.5 */
    --small-font-size: 1.219rem; /* .813rem * 1.5 */
    --smaller-font-size: 1.125rem; /* .75rem * 1.5 */


    --font-medium: 500;
    --font-semibold: 700;

    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;

    --z-tooltip: 10;
    --z-fixed: 100;
}

/* RESPONSIVE TYPOGRAPHY */

@media screen and (min-width: 968px){
    :root{
        --big-font-size: 3.5rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size:.813rem;
    }
}

/* BASE */

*{
    font-family: 'Gabriola', serif;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}

body, button, input, textarea{
    font-family: 'Gabriola', serif;
    font-size: var(--normal-font-size)
}

body{
    -webkit-font-smoothing: antialiased; /* For WebKit-based browsers (Chrome, Safari) */
    -moz-osx-font-smoothing: grayscale;  /* For Firefox on macOS */
    text-rendering: optimizeLegibility;
    margin: var(--header-height) 0 0 0;
    background-color: var(--body-color);
    color: var(--text-color)
}

button{
    cursor: pointer;
    border: none;
    outline: none;
}

h1,h2,h3{
    color: var(--title-color);
    font-weight: var(--font-semibold);
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
    color: var(--first-color);
}

img{
    max-width: 100%;
    height: auto;
}

/* ===== REUSABLE CSS CLASSES ===== */

.section{
    padding: 5.5rem 0 1rem;
}

.section__title, .section__title-center{
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-2);
    line-height: 140%;
}

.section__title-center{
    text-align: center;
}

.container{
    max-width: 968px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid{
    display: grid;
}

.main{
    overflow: hidden;
}

.hidden{
    display: none;
}

#error {
    color: #F00;
    margin: 32px;
    padding: 0 32px;
    font-weight: bold;
}

.error{
    color: #F00;
    font-weight: bold;
}

/* ===== HEADER ===== */
.header{
    width: 100%;
    background-color: var(--body-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
}

.home__logo {
    max-width: 100%; /* Image will not exceed the container width */
    height: auto;
}

.welcome__logo {
    text-align: center;
    font-size: 4em;
}

.welcome__subtitle{
    text-align: center;
    font-size: 2em;
    margin-bottom: 250px;
}

/* ===== NAVIGATION ===== */

.nav{
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo,
.nav__toggle,
.nav__close{
    color: var(--title-color);
}

.nav__logo{
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -1px;
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    transition: .3s;
}

.nav__logo-icon{
    font-size: 1.15rem;
}

.nav__logo:hover{
    color: var(--first-color);
}

.nav__toggle{
    display: inline-flex;
    font-size: 1.25rem;
    cursor: pointer;
}

@media screen and (max-width: 767px){
    .nav__menu{
        position: fixed;
        background-color: var(--container-color);
        width: 80%;
        height: 100%;
        top: 0;
        right: -100%;
        box-shadow: -2px 0 4px var(--first-color);
        padding: 4rem 0 0 3rem;
        border-radius: 1rem 0 0 1rem;
        transition: .3s;
        z-index: var(--z-fixed);
    }

    .home__img-small {
        display: none;
    }

    .home__img-large {
        display: block;
    }

    .home__img {
        width: 280px;
        order: 1;
    }
}

.nav__close{
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    cursor: pointer;
}

.nav__list{
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.nav__link{
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: .3s;
}

.nav__link:hover{
    color: var(--first-color);
}

.show-menu{
    right: 0;
}

/* CHANGE BACKGROUND HEADER */

.scroll-header{
    box-shadow: 0 1px 4px var(--first-color);
}

.home{
    padding: 3.5rem 0 2rem;
}

.home__container{
    position: relative;
}

.home__img{
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    width: 100%;
    justify-self: center;
    border-radius: 20px;
}

.home__img-small {
    display: none;
}

.home__img-large {
    display: block;
}

.home__title{
    font-size: var(--normal-font-size);
    line-height: 140%;
    margin-bottom: var(--mb-2-5);
}

.home__description{
    margin-top: var(--mb-1);
    margin-bottom: var(--mb-1);
}

/* ===== BUTTONS ===== */

.button{
    display: inline-block;
    max-width: 200px;
    background-color: var(--first-color);
    color: #FFF;
    padding: 1rem 1.75rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: .3s;
}

.button:hover{
    background-color: var(--first-color-light);
}

.button__flex{
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
}

/* ===== SLIDER ===== */






/* ===== QUOTES ===== */

.quote{
    background-color: var(--first-color);
    margin-top: var(--mb-2-5);
}

.blockquote__container{
    gap: 1.5rem;
    padding: 1.5rem 0;
}

blockquote{
    display: block;
    position: relative;
    width: 50%;
    margin: 5rem auto;
    padding: .5rem;
    font-size: 1.5rem;
    line-height: 1.5rem;
    font-family: 'Gabriola', serif;
    color: var(--title-color);
}

blockquote::before{
    content: '\201c';
    top: 10px;
    left: -40px;
    color: #faeef1;
}

blockquote::after{
    content:'\201d';
    bottom: -30px;
    color: #faeef1;
}

blockquote::before,
blockquote::after{
    font-size: 6rem;
    position: absolute;
}

blockquote cite{
    display: block;
    position: absolute;
    font-size: .8rem;
    font-style: normal;
    line-height: 1.2rem;
    color: #7A6477;
    top: 120%;
    padding-left: 70px;
}

/* ===== ABOUT ===== */

.about__container{
    row-gap: 2rem;
}

.about__img{
    width: 280px;
    justify-self: center;
    border-radius: 20px;
    object-fit: cover;
}

.about__title{
    margin-bottom: var(--mb-1);
}

.about__description{
    margin-bottom: var(--mb-2);
}

.about__details{
    display: grid;
    row-gap: 1rem;
    margin-bottom: var(--mb-2-5);
}

.about__details-description{
    display: inline-flex;
    column-gap: .5rem;
    font-size: var(--normal-font-size);
}

.about__details-icon{
    font-size: 1rem;
    color: var(--first-color);
    margin-top: .15rem;
}

/* ===== EDUCATION ===== */

.education__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.education__title {
    margin-bottom: var(--mb-1);
    text-align: center;
}

.education__content {
    display: flex;
    align-items: center;
    position: relative;
}

.education__left,
.education__right {
    flex: 1;
    padding: 1rem;
}

.education__year,
.education__race {
    font-size: var(--h3-font-size);
    margin: 0;
}

.education__year {
    text-align: right;
}

.education__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 1rem;
}

.education__rounder {
    width: 12px;
    height: 12px;
    background-color: var(--first-color);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.education__line {
    position: absolute;
    width: 2px;
    background-color: var(--first-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

/* Specific connection line between circles */
.education__content:not(:last-child) .education__line::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--first-color);
    top: 100%;
    height: calc(300% + 15rem); /* Adjust to connect lines between items */
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.education__content:last-child .education__line::after {
    display: none; /* Hide the line for the last item */
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {

    .home__img-small {
        display: block;
    }

    .home__img-large {
        display: none;
    }

    .education__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .education__left,
    .education__right {
        padding: 0;
    }
    .education__year,
    .education__race {
        margin: 0.5rem 0;
    }
    .education__center {
        margin: 0.5rem 0;
        padding: 0;
    }

    .education__line,
    .education__line::after {
        display: none;
    }

    .education__content:not(:last-child) .education__line::after {
        content: '';
        position: absolute;
        height: 2px;
        width: calc(100% + 8.5rem); /* Adjust to connect lines horizontally */
        left: 50%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 0;
    }
}


/* ===== FAQ ===== */

.questions{
    background-color: var(--first-color);
    margin-top: var(--mb-2-5);
}

.questions__container{
    gap: 1.5rem;
    padding: 1.5rem 0;
}


.questions__group{
    display: grid;
    row-gap: 1.5rem;
}

.questions__item{
    background-color: var(--body-color);
    border-radius: .25rem;
}

.questions__item-title{
    font-size: var(--normal-font-size);
    font-weight: var(--font-semibold);
}

.questions__icon{
    font-size: 1.25rem;
    color: var(--title-color);
}

.questions__description{
    font-size: var(--normal-font-size);
    padding: 0 1.25rem 1.25rem 2.5rem;
}

.questions__header{
    display: flex;
    align-items: center;
    column-gap: .5rem;
    padding: .75rem .5rem;
    cursor: pointer;
}

.questions__content{
    overflow: hidden;
    height: 0;
}

.questions__item,
.questions__header,
.questions__item-title,
.questions__icon,
.questions__description,
.questions__content{
    transition: .3s;
}

.questions__item:hover{
    box-shadow: 0 2px 8px var(--first-color);
}

/* ===== CONTACT ===== */

.contact__container{
    row-gap: 3.5rem;
}

.contact__data{
    display: grid;
    row-gap: 2rem;
}

.contact__subtitle{
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    margin-bottom: var(--mb-0-5);
}

.contact__description{
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.contact__icon{
    font-size: 1.25rem;
}

.contact__inputs{
    display: grid;
    row-gap: 2rem;
    margin-bottom: var(--mb-2-5);
}

.contact__content{
    position: relative;
    height: 3rem;
    border-bottom: 1px solid var(--text-color-light)
}

.contact__address{
    display: inline-block;
    vertical-align: top;
}

.contact__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem 1rem 1rem 0;
    background: none;
    border: none;
    outline: none;
    z-index: 1;
    font-family: inherit;
    font-size: inherit;
}

.contact__label{
    position: absolute;
    top: .75rem;
    width: 100%;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    transition: .3s;
}
.contact__area{
    height: 7rem;
}

.contact__area textarea{
    resize: none;
}

.contact__input:focus + .contact__label{
    top: -.75rem;
    left: 0;
    font-size: var(--smaller-font-size);
    z-index: 10;
}

.contact__input:not(:placeholder-shown).contact__input:not(:focus) + .contact__label{
    top: -.75rem;
    left: 0;
    font-size: var(--smaller-font-size);
    z-index: 10;
}

/* ===== FOOTER ===== */
.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.footer__logo {
    margin-bottom: 1rem;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__link {
    margin: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
}

.footer__link:hover {
    text-decoration: underline;
}

@media screen and (min-width: 768px) {

    .home__img-large {
        max-width: 75%;
    }

    .home__img-small {
        display: none;
    }

    .footer__container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer__logo {
        margin-left: 1rem;
        margin-bottom: 0; <!-- check responsiveness for screen 768 < 1024 < n -->
        margin-right: 0;
    }

    .footer__links {
        justify-content: flex-end;
    }

    .footer__link {
        margin-left: 1rem;
        margin-bottom: 0;
        margin-right: 0;
    }
}

/* ===== BREAKPOINTS ===== */

@media screen and (max-width: 320px){
    .container{
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }

    .home__img{
        width: 180px;
        margin-bottom: 20px;
    }

    .home__title{
        font-size: var(--h1-font-size);
    }
}

@media screen and (min-width: 767px){
    body{
        margin: 0;
    }

    .nav{
        height: calc(var(--header-height) + 1.5rem);
        column-gap: 3rem;
    }

    .nav__toggle,
    .nav__close{
        display: none;
    }
    .nav__list{
        flex-direction: row;
        column-gap: 3rem;
    }

    .nav__menu{
        margin-left: auto;
    }

    .home__container,
    .about__container,
    .education__container,
    .questions__container,
    .contact__container,
    .footer__container{
        grid-template-columns: repeat(2, 1fr);
    }

    .home{
        padding: 10rem 0 5rem;
    }

    .home__container{
        align-items: center;
    }

    .home__container h1{
        margin-top: 250px;
    }

    .questions__container{
        align-items: flex-start;
    }
}

@media screen and (min-width: 992px){
    .container{
        margin-left: auto;
        margin-right: auto;
    }

    .section{
        padding: 8rem 0 1rem;
    }

    .section__title,
    .section__title-center{
        font-size: var(--h1-font-size);
    }

    .home{
        padding: 13rem 0 5rem;
    }

    .home__img{
        width: 350px;
    }

    .home__description{
        padding-right: 7rem;
    }

    .about__img{
        width: 380px;
    }

    .questions__container{
        padding: 1rem 0 4rem;
    }

    .questions__title{
        text-align: initial;
    }

    .questions__group{
        row-gap: 2rem;
    }

    .questions__header{
        padding: 1rem;
    }

    .questions__description{
        padding: 0 3.5rem 2.25rem 2.75rem;
    }

    .footer__logo{
        font-size: var(--h3-font-size);
    }
}


