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

/*===== VARIABLES CSS =====*/
:root {
    --small-header-height: 3rem;
    --header-height: 4rem;
    --big-header-height: 6rem;
    --big-body-menus: 9rem;
    --body-menus: 8rem;

    /*===== COLORS =====*/
    --font-color: #000000;
    --first-color: #F2A951;
    --first-color-alt: #385D8F;
    --background-color: #E6E6E6;
    --background-color-alt: #EFDECF;
    --background-color-light: #FFFFFF;

    --background-hero: rgba(0,0,0,.1);

    /*===== FONTS AND TYPOGRAPHYS =====*/
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*===== FONT WEIGHTS =====*/
    --font-light: 300;
    --font-medium: 500;
    --font-bold: 700;

    /*===== MARGINS =====*/
    --mb-1: .5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
    --mb-5: 2.5rem;
    --mb-6: 3rem;

    /*===== Z INDEX =====*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 768px) {
    :root {
        --biggest-font-size: 4rem;
        --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 =====*/
*, ::before, ::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* margin: var(--body-menus) 0 0 0; */
    margin: 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--background-color-light);
    color: var(--font-color);
    line-height: 1.6;
    font-weight: 300;
}

h1, h2, h3, p, ul, ol {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    cursor: pointer;
}

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

/*===== CLASSES CSS =====*/
.divider {
    height: 1px;
    margin: 4rem auto;
    background-color: var(--background-color);
}

.section {
    padding: 4rem 0 4rem;
}

.text__center {
    text-align: center;
}

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

.section__title {
    font-size: var(--h1-font-size);
    color: var(--first-color-alt);
    margin-bottom: var(--mb-3);
}

.section__subtitle {
    display: block;
    color: var(--first-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--mb-1);
}

/*===== LAYOUT =====*/
.container {
    max-width: 1200px;
    width: calc(100% - 2rem);
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

/*===== HEADER =====*/
.secondary__nav {
    /* position: fixed;
    top: 0;
    left: 0; */
    background-color: var(--first-color);
    font-size: var(--small-font-size);
    width: 100%;
    color: var(--background-color-light);
    height: var(--header-height);
    display: flex;
    align-items: center;
    /* z-index: var(--z-tooltip); */
}

.secondary__link {
    color: var(--background-color-light);
    transition: opacity 200ms ease;;
}

.secondary__nav__content {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

.nav__socials a:first-child {
    padding-left: 0;
}

.nav__social__link {
    display: inline-flex;
    padding: .25rem;
    border-radius: 50%;
    color: var(--background-color-light);
    font-size: 1.2rem;
    margin-right: var(--mb-1);
    transition: 0.3s;
}

.secondary__nav__content__2 {
    display: flex;
    justify-content: space-between;
}

.secondary__nav__content__2 div {
    margin-left: var(--mb-1);
    padding-left: var(--mb-1);
    border-left: 1px solid var(--background-color-light);
}

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

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

@media screen and (max-width: 766px){
    .nav__menu{
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        padding: 1.5rem 0 1rem;
        text-align: center;
        background-color: var(--background-color-light);
        transition: .4s;
        box-shadow: 0 4px 4px rgba(0,0,0,.1);
        border-radius: 0 0 1rem 1rem;
        z-index: var(--z-fixed);
    }
}

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

.nav__rounded {
    margin-top: var(--mb-4);
}

.nav__logo, .nav__toggle {
    color: var(--font-color);
    font-weight: var(--font-medium);
}

.nav__logo img {
    width: 30px;
    vertical-align: middle;
}

.nav__toggle:hover {
    cursor: pointer;
}

.nav__link {
    color: var(--font-color);
    position: relative;
    transition: .3s;
}

.nav__link:visited {
    color: var(--font-color);
}

.nav__rounded a:visited {
    color: var(--background-color-light);
}

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

.active__link::before {
    content: '';
    position: absolute;
    bottom: -.75rem;
    left: 45%;
    width: 5px;
    height: 5px;
    background-color: var(--first-color);
    border-radius: 50%;
}

.nav__rounded a {
    background-color: var(--first-color);
    padding: .75rem 1rem .75rem 1rem;
    border-radius: .3rem;
    color: var(--background-color-light);
    border: 1px solid var(--first-color);
}

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

.nav__toggle {
    font-size: 1.3rem;
}

.show__menu {
    top: var(--body-menus);
}

.active__link {
    font-weight: bold;
}

.scroll__header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.scroll__top {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .3rem;
    background-color: var(--first-color);
    border-radius: .4rem;
    z-index: var(--z-tooltip);
    transition: .4s;
    visibility: hidden;
}
  
.scroll__top__icon {
    font-size: 1.8rem;
    color: var(--background-color-alt);
}

.show__scroll {
    visibility: visible;
    bottom: 1.5rem;
}

/*===== HERO =====*/
.hero {
    padding: 4rem 0 4rem;
    background-color: rgba(0, 0, 0, .5);
    background-image: url(../img/1.JPG);
    background-size: cover;
    background-position: 50% 50%;
}

.hero__content {
    height: 380px;
    display: flex;
    align-items: center;
}

.hero__title{
    font-size: var(--biggest-font-size);
    color: var(--first-color-alt);
    margin-bottom: var(--mb-1);
}

.hero__subtitle {
    font-size: var(--h1-font-size);
    color: var(--background-color-light);
    margin-bottom: var(--mb-4);
}

/*===== BUTTONS =====*/
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--background-color-light);
    padding: .75rem 1rem;
    border-radius: .3rem;
    transition: .3s;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: var(--font-medium);
}

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

/*===== ABOUT ME =====*/
.aboutme__title{
    font-size: var(--h1-font-size);
    color: var(--first-color-alt);
    margin-bottom: var(--mb-3);
    text-align: center;
}

.aboutme__description {
    text-align: center;
    margin-bottom: var(--mb-3);
}

.aboutme__button {
    text-align: center;
}

.aboutme__link {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .25rem;
    color: var(--first-color);
}

.aboutme__link i {
    transition: .3s;
}

.aboutme__link:hover {
    font-weight: var(--font-medium);
}

.aboutme__link:hover i {
    margin-left: var(--mb-1);
}

.aboutme__img {
    width: 280px;
    border-radius: .5rem;
    justify-self: center;
}

/*===== SERVICES =====*/
.service__container {
    row-gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service__content {
    text-align: center;
}

.service__img {
    max-height: 100px;
    margin-bottom: var(--mb-6);
}

.service__title {
    font-size: var(--h3-font-size);
    color: var(--first-color-alt);
    margin-bottom: var(--mb-1);
}

.service__description {
    padding: 0 1.5rem;
    margin-bottom: var(--mb-3);
}

.service__link {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .25rem;
    color: var(--first-color);
}

.service__link i {
    transition: .3s;
}

.service__link:hover {
    font-weight: var(--font-medium);
}

.service__link:hover i {
    margin-left: var(--mb-1);
}

/*===== APPOINMENT =====*/
.appoinment {
    padding: 4rem 0 4rem;
    background-color: rgba(0, 0, 0, .5);
    background-image: url(../img/9.jpg);
    background-size: cover;
    background-position: 50% 62%;
}

.appoinment__content {
    overflow: hidden;
}

.appoinment__title {
    font-size: var(--h1-font-size);
    color: var(--first-color-alt);
    margin-bottom: var(--mb-2);
}

.appoinment__description {
    margin-bottom: var(--mb-2);
    color: var(--background-color-light);
}

/*===== TESTIMONIALS =====*/
.testimonials {
    background-color: var(--first-color);
}

.testimonials .section__subtitle {
    color: var(--background-color);
}

.testimonial {
    position: relative;
    background-color: var(--background-color-light);
    width: 242px;
    padding: 2rem 1rem 1.5rem 1rem;
    border-radius: .75rem;
    text-align: initial;
    overflow: hidden;
    max-height: 253px;
}

.testimonials__container {
    padding-top: 1rem;
}

.testimonial__quote {
    color: var(--first-color);
    font-size: 1.3rem;
    margin-bottom: var(--mb-3);
}

.testimonial__description__container {
    padding-right: var(--mb-2);
    max-height: 120px; 
    overflow-y: auto;
    margin-bottom: var(--mb-2);
}

.testimonial__description__container::-webkit-scrollbar {
    width: 0.6rem;
    background: var(--background-color);
}
  
.testimonial__description__container::-webkit-scrollbar-thumb{
    background: var(--first-color-alt);
    border-radius: .5rem;
}

.testimonial__description {
    font-style: italic;
}

.testimonial__author {
    text-transform: uppercase;
    color: var(--first-color);
}

.swiper-pagination {
    position: initial;
    margin-top: var(--mb-1);
}

.swiper-pagination-bullet-active {
    background-color: var(--first-color-alt);
    width: 1.2rem;
    border-radius: .75rem;
}


/*===== FAQ =====*/
.faq__content {
    border-bottom: 1px solid var(--font-color);
}

.faq__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__description {
    height: 0;
    overflow: hidden;
    margin-bottom: var(--mb-2);
}

.faq__description__active {
    height: 100%;
}

.faq__icon {
    font-size: 1.1rem;
    transition: .3s;
    cursor: pointer;
}

.collapse {
    transform: rotate(45deg);
}

/*===== CONTACT =====*/
.contact {
    background-color: var(--first-color);
}

.contact__subtitle {
    color: var(--background-color);
}

.contact__content {
    margin-top: 1rem;
}

.form__control {
    border: none;
    border-bottom: 1px solid var(--background-color);
    padding: var(--mb-2);
    outline: none;
    transition: .3s;
}

.form__control:focus {
    border-color: var(--first-color);
}

.control__container > label {
    display: block;
    font-size: var(--small-font-size);
    color: var(--background-color-light);
    margin-bottom: var(--mb-1);
}

.control__container > span {
    color: var(--first-color-alt);
    font-weight: var(--font-medium);
    font-size: var(--smaller-font-size);
}

input, textarea, select {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: var(--font-color);
    border-radius: .3rem;
    appearance: none;
    -webkit-appearance: none;
}

select option {
    font-weight: 300;
    color: var(--font-color);
}

.comments__container {
    margin-top: 2rem;
}

.form__button {
    background-color: var(--background-color-light);
    color: var(--first-color);
    border: 1px solid var(--first-color);
    width: 6rem;
}

.form__button.loading {
    width: 10rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form__button:hover {
    cursor: pointer;
    background-color: var(--first-color);
    color: var(--background-color-light);
    border-color: var(--background-color-light);
}

#send__mail__notification {
    color: var(--background-color-light);
    margin-top: var(--mb-3);
    display: block;
}

.spinner__border {
    margin-right: 5px;
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: text-bottom;
    border: .25em solid var(--first-color);
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner-border .75s linear infinite;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    100% {
        transform: rotate(360deg);
    }
}

/*===== FOOTER =====*/

.footer {
    position: relative;
    overflow: hidden;
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    row-gap: 2rem;
}

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

.footer__logo {
    display: block;
    color: var(--font-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1);
}

.footer__logo img {
    width: 30px;
    vertical-align: middle;
}

.footer__socials {
    display: flex;
}

.footer__social__link{
    display: inline-flex;
    padding: .25rem;
    border-radius: 50%;
    background-color: var(--first-color);
    color: var(--background-color-light);
    font-size: 1.2rem;
    margin-right: var(--mb-1);
    transition: 0.3s;
}

.footer__social__link:hover {
    background-color: var(--first-color-alt);
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
}

.footer__links {
    display: grid;
    row-gap: .35rem;
}

.footer__link {
    display: flex;
    align-items: center;
}

.footer__link i {
    margin-right: var(--mb-1);
    font-size: 1rem;
}

.footer__link {
    font-size: var(--small-font-size);
    color: var(--first-color);
    transition: .3s;
}

.footer__link:hover {
    font-weight: bold;
}

.footer__copy {
    display: block;
    text-align: center;
    font-size: var(--smaller-font-size);
    margin-top: 4.5rem;
}

/*===== SERVICES PAGE =====*/
.services__hero {
    background-color: var(--background-hero);    
}

.servicefull__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-1);
}

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

.servicefull__info > p {
    text-align: justify;
}

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

.servicefull__details ul {
    margin-bottom: var(--mb-3);
}

.servicefull__appoinment {
    border: 1px solid var(--first-color);
}

.servicefull__img {
    width: 280px;
    border-radius: .5rem;
    justify-self: center;
}

/*===== CONTACT PAGE =====*/
.contact__hero {
    background-color: var(--background-hero);
}

.contact__info__container {
    row-gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact__item {
    text-align: center;
}

.contact__item__icon {
    color: var(--first-color);
    font-size: 4.5rem;
    margin-bottom: var(--mb-2);
}

.contact__item__title {
    font-size: var(--h3-font-size);
    color: var(--first-color-alt);
    margin-bottom: var(--mb-1);
    text-transform: uppercase;
    letter-spacing: .1rem;
}

.contact__item__link {
    color: var(--font-color);
    transition: .3s;
}

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

.contact__socials {
    display: flex;
}

.contact__social__link{
    display: inline-flex;
    padding: .25rem;
    border-radius: 50%;
    background-color: var(--first-color);
    color: var(--background-color-light);
    font-size: 1.2rem;
    margin-right: var(--mb-1);
    transition: 0.3s;
}

.contact__social__link:hover {
    background-color: var(--first-color-alt);
}

/*===== ABOUT ME PAGE =====*/
.about__hero {
    background-color: var(--background-hero);
}

.about__main__description p {
    text-align: justify;
    margin-bottom: var(--mb-3);
}

.about__main {
    margin-bottom: var(--mb-3);
}

.about__img {
    width: 280px;
    border-radius: .5rem;
    justify-self: center;
}

.about__secondary p {
    text-align: justify;
    margin-bottom: var(--mb-3);
}

.about__secondary .story {
    font-style: italic;
    font-size: var(--small-font-size);
}

/*===== MEDIA QUERIES =====*/
@media screen and (min-width: 576px) {
    .aboutme__content, .about__main {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .aboutme__img, .servicefull__img {
        width: 380px;
    }

    .about__img {
        width: 500px;
        order: -1;
    }
 
    .servicefull__info {
        margin-bottom: var(--mb-2);
    }

    .about__main {
        margin-bottom: var(--mb-6);
    }
}

@media screen and (min-width: 766px) { 
    .divider {
        margin: 8rem auto;
    }

    .section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .footer {
        padding-bottom: 4rem;
    }

    .secondary__nav__content {
        flex-direction: row;
        font-size: var(--smaller-font-size);
    }

    .secondary__nav {
        height: var(--small-header-height);
    }

    .header {
        top: var(--small-header-height);
    }

    .nav, .header {
        height: var(--big-header-height);
    }

    .nav__list {
        display: flex;
    }

    .nav__item {
        margin-left: var(--mb-5);
        margin-bottom: 0;
    }

    .footer__logo img {
        width: 40px;
    }

    .nav__logo img {
        width: 60px;
    }

    .nav__rounded {
        margin-top: 0;
    }

    .nav__toggle {
        display: none;
    }

    .hero__data {
        width: 80%;
    }

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

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

    .hero, .appoinment {
        background-size: cover;
    }

    .hero__container{
        justify-items: center;
    }

    .service__container {
        margin-top: var(--mb-6);
    }

    .services {
        padding-bottom: 4rem;
    }

    .appoinment__content {
        grid-template-columns: 1.75fr 1fr;
        align-items: center;
    }
    .appoinment__button {
        justify-self: center;
    }

    .testimonial {
        padding: 2rem;
    }

    .faq__contents {
        align-items: center;
    }

    .form__content {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2rem;
    }

    .servicefull__content {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .servicefull__left {
        order: -1;
    }
}

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

    .aboutme, .services {
        padding-bottom: 8rem;
    }

    .aboutme__content {
        column-gap: 7rem;
    }

    .aboutme__img {
        width: 500px;
    }

    .servicefull__img {
        width: 400px;
    }

    .testimonial {
        width: 380px;;
    } 
    
    .faq__contents, .contact__content {
        max-width: 900px;
    }
}

