:root {
    --header-height: 3.5rem;

    --first-color: #f72585;
    --first-color-light: #ff75c3;
    --first-color-alt: #b5179e;
    --title-color: #2b2d42;
    --text-color: #4a4e69;
    --body-color: #f8f9fa;
    --container-color: #ffffff;
    --accent-color-1: #ffcfd2;
    --accent-color-2: #cfdbf8;
    --accent-color-3: #def0ff;
    --accent-color-4: #e8f5e9;

    --body-font: 'Inter', sans-serif;
    --title-font: 'Playfair Display', serif;
    --script-font: 'Dancing Script', cursive;

    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;

    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

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

@media screen and (min-width: 968px) {
    :root {
        --h1-font-size: 4rem;
        --h2-font-size: 2.5rem;
        --h3-font-size: 1.75rem;
        --normal-font-size: 1.125rem;
        --small-font-size: 0.938rem;
        --smaller-font-size: 0.875rem;
    }
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button, input, textarea, select {
    border: none;
    outline: none;
    font-family: var(--body-font);
}

button {
    cursor: pointer;
}

.container {
    max-width: 1124px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

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

.section {
    padding: 4.5rem 0 2rem;
}

.section__title {
    font-size: var(--h2-font-size);
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--first-color);
    font-family: var(--title-font);
}

.section__subtitle {
    display: block;
    text-align: center;
    font-size: var(--small-font-size);
    margin-bottom: 3rem;
    font-style: italic;
}

.main {
    overflow: hidden;
}

.header {
    width: 100%;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: 0.4s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.scroll-header {
    background-color: var(--body-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.nav__logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.nav__toggle, .nav__close {
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        background-color: #fff;
        top: -100%;
        left: 0;
        width: 100%;
        padding: 5rem 0 3rem;
        transition: 0.5s;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
        z-index: var(--z-fixed);
    }
}

.nav__menu.show-menu {
    top: 0;
}

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

.nav__link {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    transition: 0.3s;
}

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

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.active-link {
    color: var(--first-color);
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--first-color);
    color: #fff;
    padding: 1rem 1.75rem;
    border-radius: 50px;
    font-weight: var(--font-semi-bold);
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.button:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-2px);
}

.button--ghost {
    background-color: transparent;
    color: var(--first-color);
    border: 2px solid var(--first-color);
    box-shadow: none;
}

.button--ghost:hover {
    background-color: var(--first-color);
    color: #fff;
}

.hero {
    background: linear-gradient(180deg, #fff 0%, var(--accent-color-3) 100%);
    padding-top: 7rem;
}

.hero__container {
    row-gap: 3rem;
}

.hero__data {
    text-align: center;
}

.hero__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__description {
    margin-bottom: 2.5rem;
}

.hero__buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.hero__buttons .button {
    width: 100%;
    max-width: 250px;
}

.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__img {
    width: 280px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: 0.4s;
    background-color: #fff;
    padding: 10px;
}

.hero__img:hover {
    transform: rotate(0deg);
}

.info-bar {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.info-bar__grid {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.info-bar__item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-bar__item i {
    font-size: 1.5rem;
    background-color: var(--accent-color-1);
    color: var(--first-color);
    padding: 0.75rem;
    border-radius: 50%;
}

.info-bar__item h3 {
    font-size: var(--normal-font-size);
    margin-bottom: 0.25rem;
}

.info-bar__item p {
    font-size: var(--small-font-size);
    color: var(--text-color);
}

.about {
    text-align: center;
}

.about__subtitle {
    font-size: var(--normal-font-size);
    margin-bottom: 3rem;
    color: var(--text-color);
}

.about__subtitle span {
    color: var(--first-color);
    font-weight: var(--font-bold);
}

.about__container {
    gap: 2rem;
}

.about__card {
    background-color: var(--accent-color-1);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: 0.3s;
}

.about__card--alt {
    background-color: var(--accent-color-2);
}

.about__card:nth-child(3) {
    background-color: var(--accent-color-4);
}

.about__icon {
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.about__title {
    margin-bottom: 1rem;
}

.about__description {
    font-size: var(--small-font-size);
}

.about__card:hover {
    transform: translateY(-10px);
}

.creations {
    background-color: #fff;
}

.creations__filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background-color: var(--body-color);
    color: var(--text-color);
    font-weight: var(--font-semi-bold);
    transition: 0.3s;
    border: 1px solid transparent;
}

.filter-btn.active {
    background-color: var(--first-color);
    color: #fff;
}

.filter-btn:hover:not(.active) {
    border-color: var(--first-color);
    color: var(--first-color);
}

.creations__carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.creations__carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0 2.5rem;
    scrollbar-width: none;
}

.creations__carousel::-webkit-scrollbar {
    display: none;
}

.creation-card {
    min-width: 280px;
    background-color: var(--container-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.creation-card__img-container {
    height: 250px;
    width: 100%;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creation-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.creation-card:hover .creation-card__img {
    transform: scale(1.05);
}

.creation-card__data {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
}

.creation-card__data h3 {
    margin-bottom: 0.5rem;
}

.creation-card__data p {
    font-size: var(--small-font-size);
}

.carousel__btn {
    width: 40px;
    height: 40px;
    background-color: var(--first-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
    flex-shrink: 0;
}

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

@media screen and (max-width: 767px) {
    .carousel__btn {
        display: none;
    }
}

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

.specialty-card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
}

.specialty-card:hover {
    background-color: var(--first-color);
}

.specialty-card:hover *, .specialty-card:hover i {
    color: #fff;
}

.specialty__icon {
    font-size: 2.5rem;
    color: var(--first-color);
    margin-bottom: 1.5rem;
    display: block;
}

.specialty-card h3 {
    margin-bottom: 1rem;
}

.specialty-card p {
    font-size: var(--small-font-size);
}

.contact__container {
    row-gap: 4rem;
}

.contact__info {
    display: grid;
    gap: 2rem;
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact__info-item i {
    font-size: 1.5rem;
    color: var(--first-color);
}

.contact__info-item h4 {
    margin-bottom: 0.25rem;
}

.contact__info-item p {
    font-size: var(--small-font-size);
}

.contact__form {
    background-color: var(--container-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact__inputs {
    display: flex;
    flex-direction: column;
    gap:  0.5rem;
    margin-bottom: 0.5rem;
}

.contact__content {
    background-color: var(--body-color);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
}

.contact__form > .contact__content {
    margin-bottom: 2.5rem;
}

.contact__label {
    font-size: var(--smaller-font-size);
    color: var(--title-color);
    font-weight: var(--font-bold);
}

.contact__input {
    width: 100%;
    background-color: transparent;
    color: var(--text-color);
    font-size: var(--normal-font-size);
    padding: 0.5rem 0;
}

.contact__button {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.error-message {
    display: none;
    background-color: #ffdde1;
    color: #e63946;
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: var(--small-font-size);
    text-align: center;
    border: 1px solid #e63946;
}

.error-message.show-error {
    display: block;
}

/* --- Footer --- */
.footer {
    background-color: #fff;
    padding: 4rem 0 2rem;
    border-top: 1px solid #eee;
}

.footer__container {
    row-gap: 3.5rem;
}

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

.footer__logo {
    width: 120px;
}

.footer__description {
    font-size: var(--small-font-size);
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
}

.footer__links ul {
    display: grid;
    gap: 0.75rem;
}

.footer__links a {
    color: var(--text-color);
    transition: 0.3s;
}

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

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

.footer__social-link {
    font-size: 1.5rem;
    color: var(--title-color);
    transition: 0.3s;
}

.footer__social-link:hover {
    color: var(--first-color);
    transform: translateY(-5px);
}

.footer__copy {
    text-align: center;
    margin-top: 4rem;
    font-size: var(--smaller-font-size);
    color: var(--text-color);
}

.footer__copy i {
    color: var(--first-color);
}

/* --- Media Queries --- */
@media screen and (min-width: 567px) {
    .hero__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .hero__data {
        text-align: left;
    }

    .hero__buttons {
        flex-direction: row;
    }

    .info-bar__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__card--alt {
        order: 1;
    }
}

@media screen and (min-width: 767px) {
    .section {
        padding: 7rem 0 3rem;
    }

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

    .nav__menu {
        margin-left: auto;
    }

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

    .nav__toggle, .nav__close {
        display: none;
    }

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

    .footer__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about__container {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero__img {
        width: 450px;
    }
}
