/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Lato - Local */
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/lato/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Playfair Display - Local */
@font-face {
    font-family: 'Playfair Display';
    src: url('assets/fonts/playfair-display/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--base-3);
    overflow-x: hidden;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

ul {
    margin-bottom: 1rem;
}

/* GLOBAL */
#page {
    background-color: transparent
}

span {
    line-height: 1;
}

p {
    margin: 0
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    margin: 0;
}

/* HEADER */
.site-header,
#site-navigation {
    background-color: transparent
}

.nav-float-right #site-navigation {
    margin: auto;
}

/* MENU HOVER ANIMATION */
.main-nav ul li.menu-item a {
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease, left 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary);
}

.main-nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

/* BUTTON */
.wp-block-button.is-style-fill {
    width: fit-content;
}

.wp-block-button.is-style-fill>a {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    font-size: 1rem;
}

.wp-block-button.is-style-fill>a .btn-icon {
    background-color: var(--primary-light);
    border-radius: 50%;
    padding: 0.5rem;
}

.wp-block-button.is-style-fill>a .btn-icon .arrow-right {
    background-image: url("assets/icons/arrow-right.webp");
    background-size: contain;
    width: 22px;
    height: 22px;
    display: block;
}

.wp-block-button.is-style-fill:hover>a .btn-icon .arrow-right {
    /* TODO: add animation ease-in-out */
    transform: scale(0.9);
    transition: transform 0.2s ease-in-out;
}

/* HERO SECTION */
#hero-section h1 .point-decoration {
    position: relative;
    z-index: 1;
}

#hero-section h1 .point-decoration::after {
    /* TODO: background image as decoration */
    content: "";
    width: 4rem;
    height: 4rem;
    background-image: url('assets/images/point-decoration.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(50%);
    z-index: -1;
}

.gb-element-b8c71b50,
figure {
    height: inherit !important;
}

.gb-element-b8c71b50 figure>img {
    border-radius: 1.5rem;
}

/* INTRO */

#intro {
    position: relative;
}

#intro::after {
    content: "";
    width: 6rem;
    height: 6rem;
    background-image: url('assets/images/point-decoration-2.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    bottom: -1rem;
    right: -3rem;
    z-index: -1;
}

/* WHY */
#why .card {
    background-color: var(--base-3);
    padding: 2rem;
    border-radius: 2rem;
}

#why .card.active {
    background-color: var(--primary-light);
}

#why .card .card-icon {
    border-radius: 50%;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#why .card.active .card-icon {
    background-color: var(--primary);
}

#why .card .card-icon figure,
#why .card .card-icon figure>img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
}

#why .card .card-title {
    display: flex;
    align-items: center;
}

#why .card .card-title h3 {
    font-size: 1.3rem;
    margin: 0;
}

/* SERVICES CAROUSEL */
.services-carousel {
    height: 60vh;
    min-height: 60vh;
    overflow: hidden;
    border-radius: 20px;
}

.services-carousel .swiper-slide {
    height: auto;
}

.services-carousel .swiper-slide:not(.swiper-slide-active) {
    opacity: 0;
}

.services-carousel .swiper-pagination {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10;
}

.services-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--base);
    opacity: 1;
    transition: all 0.3s ease;
}

.services-carousel .swiper-pagination-bullet-active {
    background-color: var(--primary);
    height: 24px;
    border-radius: 5px;
}

.service-item {
    background-color: #fff;
    border-radius: 20px;
    padding: 4rem;
    position: relative;
}

.service-item .service-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.service-item .service-btn {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* PRICES */
.item-price-title {
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* CONTACT */
#contact-images {
    justify-content: center;
}

#contact-images>div:first-child {
    transform: rotate(-10deg);
    margin-right: -8rem;
    margin-top: 4rem;
}

#contact-images>div:nth-child(2) {
    z-index: 1;
}

#contact-images>div:last-child {
    transform: rotate(10deg);
    z-index: 2;
    margin-left: -8rem;
    margin-top: 4rem;
}

#contact-images>div>figure>img {
    height: 350px;
    width: auto;
    object-fit: cover;
    border-radius: 20px;
}

/* BUTTON ALT */
.wp-block-button.btn-alt .wp-block-button__link {
    background-color: var(--primary-light);
}

.wp-block-button.btn-alt>a .btn-icon {
    background-color: #fff;
}

/* STORY */

#story-image {
    height: 100%;
}

#story-image figure img {
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

h5.story-list-title {
    padding: 0!important;
}

/* CITATION */
#citation {
    padding: 4rem;
}

#citation blockquote {
    border: none;
}

/* AVIS CAROUSEL */
.avis-carousel {
    overflow: hidden;
    padding-bottom: 3rem;
}

.avis-carousel .swiper-wrapper {
    align-items: stretch;
}

.avis-carousel .swiper-slide {
    height: auto;
}

.avis-carousel .swiper-pagination {
    position: relative;
    bottom: -5rem;
}

.avis-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--base-3);
    opacity: 1;
    transition: all 0.3s ease;
}

.avis-carousel .swiper-pagination-bullet-active {
    background-color: var(--primary);
    width: 24px;
    border-radius: 5px;
}

.avis-item {
    background-color: var(--base-3);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.avis-content {
    flex: 1;
    margin-bottom: 1rem;
}

.avis-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.avis-name {
    font-weight: 600;
}

.avis-date {
    font-size: 0.85rem;
    color: var(--contrast-2);
}

/* FAQ ACCORDION */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-radius: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--base-3);
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--primary-light);
}

.faq-question[aria-expanded="true"] {
    background-color: var(--primary-light);
}

.faq-question-text {
    font-weight: 600;
}

.faq-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover .faq-icon,
.faq-question[aria-expanded="true"] .faq-icon {
    background-color: var(--primary);
}

.faq-icon::after {
    content: "";
    width: 1rem;
    height: 1rem;
    background-image: url("assets/icons/arrow-right.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: rotate(-90deg);
}

.faq-answer {
    background-color: var(--base-3);
}

.faq-answer-content {
    padding: 1.5rem;
}

/* GSAP SCROLL ANIMATIONS - prevent FOUC */
#hero-section h1,
#hero-section p,
#hero-section .wp-block-button,
.gb-element-b8c71b50 {
    visibility: hidden;
}

.gsap-ready #hero-section h1,
.gsap-ready #hero-section p,
.gsap-ready #hero-section .wp-block-button,
.gsap-ready .gb-element-b8c71b50 {
    visibility: visible;
}

/** FOOTER **/

.site-info,
.footer-widgets {
    background-color: transparent;
}

.site-footer {
    position: relative;
    padding-top: 4rem;
}

.site-footer::before {
    content: "";
    background-image: url("assets/images/point-decoration-3.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 42vw;
    height: 100%;
    z-index: -1;
}

.site-info .copyright-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: left;
    margin: 0;
    width: 100%;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

#planity-link {
    width: fit-content;
    border-radius: 40px;
}

#planity-link figure {
    display: flex;
}

@media (min-width: 769px) {
    .main-nav ul li.menu-item a {
        line-height: 1;
    }

    .menu-item-btn-rdv {
        display: none;
    }
}

@media (max-width: 768px) {
    .inside-header>.wp-block-button.is-style-fill {
        display: none;
    }

    .menu-item-btn-rdv {
        list-style: none;
        padding: 1rem 20px;
    }

    .menu-item-btn-rdv .wp-block-button.is-style-fill {
        width: 100%;
    }

    .menu-item-btn-rdv .wp-block-button.is-style-fill>a {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .services-carousel {
        height: auto;
        overflow: hidden;
        border-radius: 0;
        padding-bottom: 3rem;
    }

    .services-carousel .swiper-pagination {
        position: absolute;
        bottom: 0;
        left: 50%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
        flex-direction: row;
        justify-content: center;
    }

    .services-carousel .swiper-pagination-bullet {
        background-color: #fff;
    }

    .services-carousel .swiper-pagination-bullet-active {
        background-color: var(--primary);
        height: 10px;
        width: 24px;
        border-radius: 5px;
    }

    .service-item {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    #hero-section h1 {
        font-size: 10vw !important;
    }

    #citation {
        padding: 1rem;
    }
}