
/* ### ABOUT ### */
.about {
    background-color: var(--c-primary);
    padding-block: 2.25rem;
    border-radius: var(--br-base, 5px);
    transition: padding-block var(--trans-3),
                border-radius var(--trans-3);
}

.about .main {
    max-width: 51rem;
    margin-inline: auto;
}

.about .main *:not(.btn) {
    color: #fff;
}

.about .main *:not(.btn.white)::selection {
    background-color: #fff;
    color: var(--c-primary);
}

.about .main > :first-child {
    font-size: var(--fs-xl, 2rem);
    margin-bottom: 0.5rem;
    transition: margin-bottom var(--trans-3);
}

.about .main p {
    margin-bottom: 1.25rem;
    transition: var(--trans-3);
}

.about .main .shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: gap var(--trans-3);
}

.about .main .btn {
    max-width: 100%;
}

.about .main .btn.transparent {
    color: #fff;
    border-color: #fff;
}

.about .main .btn.transparent:hover {
    border-color: var(--c-dark);
}

/* ### FOOTER ### */
footer {
    position: relative;
    padding-top: 2rem;
    overflow: hidden;
}

footer::before {
    position: absolute;
    inset: auto 2rem 5rem auto;
    width: 12rem;
    height: 14.25rem;
    background: no-repeat center/contain url(../images/gift-box.webp);
    margin-block: auto;
}

footer .logo {
    position: relative;
    display: block;
    margin-bottom: 1rem;
    transition: margin-bottom var(--trans-3);
}

footer .logo::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 1px;
    background-color: var(--c-border);
    margin-block: auto;
}

footer .logo a {
    width: fit-content;
    display: block;
    margin-inline: auto;
}

footer .logo img {
    display: block;
    background-color: #fff;
    padding-inline: 0.625rem;
    margin-inline: auto;
    transition: width var(--trans-3);
}

footer .info {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
    transition: margin-bottom var(--trans-3);
}

footer .info .shell {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: max-width var(--trans-3),
                gap var(--trans-3);
}

footer .shell .icon {
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-primary);
    border-radius: 50%;
    transition: width var(--trans-3),
                height var(--trans-3),
                background-color var(--trans-3);
}

footer .info li:hover .icon {
    background-color: var(--c-primary);
}

footer .icon img {
    transition: var(--trans-3);
}

footer .info li:hover .icon img {
    filter: var(--fltr-white);
}

footer .shell > :nth-child(2) {
    color: var(--c-text);
    transition: var(--trans-3);
}

footer .shell:hover > :nth-child(2) {
    color: var(--c-primary);
}

footer hr {
    opacity: 0.3;
}

footer .wrapper {
    display: grid;
    gap: 1.25rem 2rem;
    margin-block: 1rem 1.25rem;
    transition: gap var(--trans-3),
                margin-block var(--trans-3);
}

footer .title {
    display: block;
    font-size: var(--fs-sm, 1rem);
    font-weight: 600;
    color: var(--c-dark);
    margin-bottom: 1rem;
    transition: font-size var(--trans-3),
                margin-bottom var(--trans-3);
}

footer .details .title:first-of-type {
    margin-bottom: 0.5rem;
}

footer .details .sub-title {
    display: block;
    font-size: var(--fs-sm, 1rem);
    font-weight: 500;
    color: var(--c-dark);
    margin-bottom: 0.5rem;
}

footer .details .sub-title:has(+ .payment-methods) {
    font-weight: 600;
}

footer .details p {
    margin-bottom: 0.75rem;
    transition: var(--trans-3);
}

footer .details .social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    transition: gap var(--trans-3);
}

footer .social-links img {
    transition: transform var(--trans-3);
}

footer .social-links li:hover img {
    transform: scale(0.9);
}

footer .details .payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
}

footer .payment-methods li {
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-primary);
    padding-inline: 0.75rem;
    border-radius: var(--br-sm, 2px);
    transition: background-color var(--trans-3);
}

footer .payment-methods li:hover {
    background-color: var(--c-dark);
}

footer .payment-methods li img {
    background: none;
    animation: none;
}

footer .links ul {
    display: grid;
    gap: 0.75rem;
    transition: gap var(--trans-3);
}

footer .links li * {
    position: relative;
    font-size: var(--fs-sm, 1rem);
    color: var(--c-text);
    padding-left: 1.5rem;
    transition: color var(--trans-3),
                padding-left var(--trans-3);
}

footer .links li a:hover {
    color: var(--c-primary);
}

footer .links li *::before,
footer .links li *::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--c-primary);
    border-radius: var(--br-sm, 2px);
    margin-block: auto;
    transition: left var(--trans-3),
    background-color var(--trans-3);
}

footer .links li *::before {
    transform: rotate(45deg);
}

footer .links li *::after {
    display: flex;
    align-items: center;
    justify-content: center;
    background: no-repeat center/0.5rem url(../images/icons/arrow-right.png);
}

footer .links li a:hover::before,
footer .links li a:hover::after {
    left: 0.25rem;
}

footer .links li a:hover::before {
    background-color: var(--c-dark);
}

footer .copyright {
    background-color: var(--c-primary);
    padding-block: 0.625rem;
}

footer .copyright p {
    color: #fff;
}

footer .copyright p::selection {
    background-color: #fff;
    color: var(--c-primary);
}


/* ~~~~~ MEDIA QUERIES ~~~~~ */
/* ===== MOBILE (Potrait) : 480px ===== */
@media screen and (min-width: 30rem) {
    /* {{{ About }}} */
    .about {
        border-radius: 0;
    }

    .about .main {
        text-align: center;
    }
    
    .about .main .shell {
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .about .main .btn {
        max-width: fit-content;
        padding-inline: 2rem;
    }

    /* {{{ Footer }}} */
    footer .details .payment-methods {
        grid-template-columns: repeat(5, 1fr);
    }

    footer .logo img {
        width: 9rem;
    }

    footer .copyright {
        text-align: center;
    }
}

/* ===== MOBILE (Lanscape) : 608px ===== */
@media screen and (min-width: 38rem) {
    /* {{{ About }}} */
    .about .main p {
        margin-bottom: 1.5rem;
    }

    /* {{{ Footer }}} */
    footer::before {
        content: '';
    }

    footer .logo {
        margin-bottom: 1.25rem;
    }
    
    footer .info {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 1.25rem;
    }

    footer .info .shell {
        align-items: flex-start;
    }

    footer .details p {
        max-width: 60%;
        line-height: var(--lh-md);
    }
    
    footer .details .social-links {
        gap: 0.875rem;
    }
}

/* ===== TABLET (Potrait) : 768px ===== */
@media screen and (min-width: 48rem) {
    /* {{{ About }}} */
    .about {
        padding-block: 3rem;
    }

    /* {{{ Footer }}} */
    footer .logo {
        margin-bottom: 1.5rem;
    }
    
    footer .logo img {
        width: 9.75rem;
    }

    footer .info {
        margin-bottom: 2rem;
    }

    footer .wrapper {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 1.5rem;
    }

    footer .details p {
        max-width: 90%;
    }

    footer .info .shell {
        max-width: 60%;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        text-align: center;
        margin-inline: auto;
    }

    footer .shell .icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    footer .icon img {
        width: auto;
        height: 1.125rem;
    }

    footer #location--icon img {
        height: 1.25rem;
    }

    footer #envelop--icon img {
        height: 0.875rem;
    }
}

/* ===== LAPTOP : 992px ===== */
@media screen and (min-width: 62rem) {
    /* {{{ About }}} */
    .about {
        padding-block: 3.75rem;
    }

    .about .main > :first-child {
        margin-bottom: 0.75rem;
    }

    .about .main p {
        margin-bottom: 1.875rem;
    }

    /* {{{ Footer }}} */
    footer::before {
        width: 15.625rem;
        height: 17.875rem;
    }

    footer .info {
        grid-template-columns: repeat(4, 1fr);
    }

    footer .info .shell {
        max-width: 100%;
    }
    
    footer .title {
        font-size: var(--fs-md, 1.25rem);
    }

    footer .links li * {
        font-size: var(--fs-base, 1rem);
    }
}

/* ===== DESKTOP : 1200px ===== */
@media screen and (min-width: 75rem) {
    /* {{{ About }}} */
    .about {
        padding-block: 5rem;
    }

    /* {{{ Footer }}} */
    footer .logo img {
        width: 10.5rem;
    }

    footer .shell .icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    footer .icon img {
        height: 1.375rem;
    }

    footer #location--icon img {
        height: 1.375rem;
    }

    footer #envelop--icon img {
        height: 1rem;
    }
    
    footer .wrapper {
        grid-template-columns: 17.125rem 11.25rem 18.25rem 18.875rem;
        gap: 2.5rem;
        margin-block: 2rem;
    }

    footer .details .sub-title {
        margin-bottom: 0.75rem;
    }

    footer .details p {
        max-width: 96%;
        line-height: var(--lh-base);
    }

    footer .details .payment-methods {
        grid-template-columns: repeat(3, 1fr);
    }

    footer .links ul {
        gap: 1.25rem;
    }
}