/* ================== CSS VARIABLES ================== */
:root {
    --header-height: 3.5rem;
    /* Colors */
    --first-color: hsl(35, 85%, 55%);
    --first-color-alt: hsl(35, 85%, 50%);
    --title-color: hsl(28, 20%, 25%);
    --text-color: hsl(28, 15%, 45%);
    --text-color-light: hsl(28, 8%, 65%);
    --body-color: #fffbf5;
    --container-color: #ffffff;
    --gradient-color: linear-gradient(135deg, hsl(35, 85%, 65%), hsl(15, 90%, 60%));
    /* Font and typography */
    --body-font: 'Poppins', sans-serif;
    --title-font: 'Playfair Display', 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;
    /* Font weight */
    --font-medium: 500;
    --font-semi-bold: 600;
    /* Margins */
    --mb-1: .5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    /* z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 968px) {
    :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;
    }
}

/* ================== BASE ================== */
* { 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-weight: var(--font-semi-bold); font-family: var(--title-font); }
ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ================== REUSABLE CSS CLASSES ================== */
.container { max-width: 1024px; margin-left: var(--mb-2); margin-right: var(--mb-2); }
.section { padding: 4.5rem 0 2rem; }
.section__title { font-size: var(--h1-font-size); color: var(--title-color); text-align: center; margin-bottom: var(--mb-1); }
.section__subtitle { display: block; font-size: var(--small-font-size); color: var(--first-color); text-align: center; margin-bottom: var(--mb-3); font-family: var(--body-font); }
.button { display: inline-block; background: var(--gradient-color); color: #fff; padding: 1rem 1.75rem; border-radius: .5rem; font-weight: var(--font-medium); transition: .3s; border: none; cursor: pointer; box-shadow: 0 4px 15px hsla(35, 85%, 55%, 0.4); }
.button:hover { transform: translateY(-3px); box-shadow: 0 6px 20px hsla(35, 85%, 55%, 0.5); }
.button i { margin-left: var(--mb-1); }

/* ================== HEADER / NAVBAR ================== */
.header { width: 100%; background-color: transparent; position: fixed; top: 0; left: 0; z-index: var(--z-fixed); transition: .4s; }
.nav { height: var(--header-height); display: flex; justify-content: space-between; align-items: center; }
.nav__logo { color: var(--title-color); font-weight: var(--font-semi-bold); font-family: var(--title-font); }
.nav__toggle, .nav__close { font-size: 1.5rem; color: var(--title-color); cursor: pointer; }
.nav__list { display: flex; flex-direction: column; gap: 2rem; }
.nav__link { color: var(--text-color); font-weight: var(--font-medium); transition: .3s; position: relative; }
.nav__link:hover, .active-link { color: var(--first-color); }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background-color: var(--first-color); transition: width 0.3s; }
.nav__link:hover::after, .nav__link.active-link::after { width: 60%; }
.nav__close { position: absolute; top: 1rem; right: 1.25rem; }
.show-menu { right: 0; }
.scroll-header { background-color: var(--body-color); box-shadow: 0 1px 4px hsla(28, 24%, 15%, .1); }
.scroll-header .nav__logo, .scroll-header .nav__toggle, .scroll-header .nav__link { color: var(--title-color); }

@media screen and (max-width: 767px) {
    .nav__menu { position: fixed; background-color: var(--body-color); width: 80%; height: 100%; top: 0; right: -100%; padding: 4rem 2rem; transition: .4s; box-shadow: -2px 0 4px hsla(28, 24%, 15%, .1); }
}

/* ================== HOME / HERO SECTION ================== */
.home { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; overflow: hidden; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero-slider img { width: 100%; height: 100%; object-fit: cover; transition: opacity 1.5s ease-in-out, transform 8s ease-in-out; position: absolute; top: 0; left: 0; opacity: 0; transform: scale(1.1); }
.hero-slider img.active { opacity: 1; transform: scale(1); }
.home__overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: -1; }
.home__data { z-index: 1; }
.home__title { font-size: var(--biggest-font-size); color: #fff; margin-bottom: var(--mb-1); text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.home__description { margin-bottom: var(--mb-3); max-width: 600px; margin-left: auto; margin-right: auto; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.animate-up { opacity: 0; animation: slideUp 0.8s ease-out forwards; }
.home__title.animate-up { animation-delay: 0.2s; }
.home__description.animate-up { animation-delay: 0.4s; }
.home__container .button.animate-up { animation-delay: 0.6s; }
.scroll-header .nav__logo, .scroll-header .nav__link, .scroll-header .nav__toggle { color: var(--title-color) !important; }
#header.at-home .nav__logo, #header.at-home .nav__link, #header.at-home .nav__toggle { color: #fff; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }

/* ================== ABOUT SECTION ================== */
.about__container { display: grid; gap: 2rem; align-items: center; }
.about__image { border-radius: 1rem; overflow: hidden; box-shadow: 0 10px 30px hsla(28, 20%, 25%, 0.15); }
.about__image img { transition: transform .4s; }
.about__image:hover img { transform: scale(1.05); }
.about__description { margin-bottom: var(--mb-2); }

/* ================== SERVICES SECTION ================== */
.services { background-color: var(--container-color); }
.services__container { display: grid; gap: 1.5rem; padding-top: 1rem; }
.service__card { background: linear-gradient(145deg, #ffffff, #f7f3ed); padding: 2.5rem 1.5rem; border-radius: .75rem; text-align: center; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 6px hsla(28, 24%, 15%, .05); }
.service__card:hover { transform: translateY(-10px); box-shadow: 0 12px 24px hsla(28, 24%, 15%, .1); }
.service__icon { font-size: 2.5rem; color: var(--first-color); margin-bottom: var(--mb-2); }
.service__title { font-size: var(--h3-font-size); margin-bottom: var(--mb-1); }

/* ================== GALLERY SECTION ================== */
.gallery__container { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.gallery__item { border-radius: .75rem; overflow: hidden; cursor: pointer; box-shadow: 0 4px 6px hsla(28, 24%, 15%, .1); position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.gallery__item:hover img { transform: scale(1.1); }

/* ================== TEAM SECTION ================== */
.team { background-color: var(--container-color); }
.team__container { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.team__card { text-align: center; background: #fff; padding: 2rem 1rem; border-radius: .75rem; box-shadow: 0 8px 24px hsla(28, 20%, 25%, 0.08); transition: transform .3s, box-shadow .3s; }
.team__card:hover { transform: translateY(-8px); box-shadow: 0 12px 32px hsla(28, 20%, 25%, 0.12); }
.team__img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: var(--mb-2); border: 4px solid var(--first-color); }
.team__name { font-size: var(--h3-font-size); margin-bottom: .25rem; }
.team__role { font-size: var(--small-font-size); color: var(--text-color-light); margin-bottom: var(--mb-1); }
.team__socials { display: flex; justify-content: center; gap: 1rem; }
.team__socials a { font-size: 1.2rem; color: var(--text-color-light); transition: color .3s; }
.team__socials a:hover { color: var(--first-color); }

/* ================== TESTIMONIALS SECTION ================== */
.testimonials { position: relative; text-align: center; color: #fff; padding: 6rem 0; }
.testimonials__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://images.unsplash.com/photo-1533090481720-856c6e3c1fdc?w=1200&auto=format&fit=crop'); background-size: cover; background-position: center; z-index: -2; }
.testimonials::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: hsla(28, 20%, 15%, 0.7); z-index: -1; }
.testimonials .section__title, .testimonials .section__subtitle { color: #fff; }
.testimonial__item { opacity: 0; transition: opacity .5s ease-in-out; position: absolute; width: 100%; left: 0; top: 0; }
.testimonial__item.active { opacity: 1; position: relative; }
.testimonial__img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--first-color); margin-bottom: var(--mb-2); }
.testimonial__text { font-style: italic; max-width: 700px; margin: 0 auto var(--mb-2); }
.testimonial__author { font-family: var(--title-font); font-size: var(--h3-font-size); margin-bottom: .25rem; }
.testimonial__rating i { color: #ffc107; }

/* ================== PRICING SECTION ================== */
.pricing__container { display: grid; gap: 2rem; align-items: center; }
.pricing__card { background: var(--container-color); padding: 2.5rem 2rem; border-radius: .75rem; text-align: center; box-shadow: 0 8px 24px hsla(28, 20%, 25%, 0.08); transition: transform .3s, box-shadow .3s; border: 2px solid transparent; }
.pricing__card:hover { transform: translateY(-10px); box-shadow: 0 12px 32px hsla(28, 20%, 25%, 0.12); }
.pricing__card.featured { border-color: var(--first-color); transform: scale(1.05); position: relative; }
.featured__tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--gradient-color); color: #fff; padding: .25rem 1rem; border-radius: 1rem; font-size: var(--small-font-size); font-weight: var(--font-medium); }
.pricing__title { font-size: var(--h2-font-size); margin-bottom: var(--mb-1); }
.pricing__price { font-size: 2.5rem; font-weight: var(--font-semi-bold); color: var(--title-color); margin-bottom: var(--mb-2); }
.pricing__price sup { font-size: 1.5rem; vertical-align: top; }
.pricing__features { list-style: none; margin-bottom: var(--mb-3); text-align: left; }
.pricing__features li { margin-bottom: .75rem; display: flex; align-items: center; }
.pricing__features i { font-size: 1.2rem; margin-right: .5rem; }
.pricing__features i.fa-check { color: green; }
.pricing__features i.fa-times { color: red; }
.pricing__card .button { width: 100%; }

/* ================== CONTACT SECTION ================== */
.contact__container { display: grid; gap: 2rem; }
.contact__info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__item { display: flex; align-items: flex-start; gap: 1rem; }
.contact__item i { font-size: 1.5rem; color: var(--first-color); margin-top: .25rem; }
.contact__item h3 { font-size: var(--h3-font-size); margin-bottom: .25rem; }
.contact__form { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.form__group-full { grid-column: 1 / -1; }
.form__input { width: 100%; padding: 1rem; border: 1px solid var(--text-color-light); border-radius: .5rem; background-color: var(--body-color); color: var(--text-color); font-family: var(--body-font); font-size: var(--normal-font-size); transition: border-color .3s; }
.form__input:focus { outline: none; border-color: var(--first-color); }
textarea.form__input { resize: vertical; }
.form__message { font-size: var(--small-font-size); text-align: center; }

/* ================== FOOTER ================== */
.footer { background-color: var(--title-color); color: #fff; padding: 3rem 0 2rem; }
.footer__container { display: grid; gap: 2.5rem; }
.footer__title { color: #fff; font-size: var(--h2-font-size); margin-bottom: var(--mb-1); }
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a { color: var(--text-color-light); transition: color .3s; }
.footer__links a:hover { color: var(--first-color); }
.footer__socials { display: flex; gap: 1.5rem; }
.footer__socials a { font-size: 1.25rem; color: #fff; transition: transform .3s; }
.footer__socials a:hover { color: var(--first-color); transform: translateY(-3px); }
.footer__copy { margin-top: 3rem; text-align: center; font-size: var(--small-font-size); color: var(--text-color-light); }

/* ================== SCROLL REVEAL ANIMATION ================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================== MEDIA QUERIES ================== */
@media screen and (min-width: 576px) {
    .contact__form { grid-template-columns: 1fr 1fr; }
    .footer__container { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 767px) {
    body { margin: 0; }
    .section { padding: 7rem 0 2rem; }
    .nav { height: calc(var(--header-height) + 1.5rem); }
    .nav__toggle, .nav__close { display: none; }
    .nav__list { flex-direction: row; gap: 2.5rem; }
    .about__container { grid-template-columns: repeat(2, 1fr); }
    .services__container { grid-template-columns: repeat(3, 1fr); }
    .pricing__container { grid-template-columns: repeat(3, 1fr); }
    .contact__container { grid-template-columns: 1fr 1.5fr; align-items: flex-start;}
    .footer__container { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (min-width: 1024px) {
    .container { margin-left: auto; margin-right: auto; }
}
