:root {
    --primaryColor: #5D2E89;
    --secondaryColor: #006B6A;
    --darkSectionBg: rgba(175, 181, 247, 0.2);
    --borderRadius: 4px;
    --maxWidth: 1750px;
}

/* ========== BASE ========== */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: clamp(14px, 0.9vw, 18px);
}

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    line-height: 1.5;
    color: #000;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== TYPOGRAPHY ========== */
h1 {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

h2 {
    font-size: clamp(2rem, 3vw, 4.2rem);
    margin: 0.75rem 0;
    line-height: 1.2;
}

h2>span {
    color: var(--primaryColor);
}

h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin: 0.5rem 0;
    line-height: 1.2;
}

h4 {
    font-size: clamp(1.4rem, 1.8vw, 2rem);
    margin: 0.5rem 0;
    line-height: 1.4;
}

p {
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    margin: 0.5rem 0;
    text-wrap: pretty;
}

/* ========== LAYOUT ========== */
section {
    max-width: var(--maxWidth);
    margin: clamp(4rem, 8vw, 8rem) auto;
    padding: 0 2rem;
}

section.darkBg {
    position: relative;
    padding: clamp(4rem, 8vw, 8.5rem) 0;
    margin: 0 auto;
}

section.darkBg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: var(--darkSectionBg);
    z-index: -1;
}

/* ========== HEADER ========== */
header {
    position: relative;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;

    @media (min-width: 1024px) {
        padding: 1rem 3rem;
    }
}

header ul {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: 0;
    margin: 0;

    @media (min-width: 1024px) {
        position: absolute;
        inset: 50% auto auto 50%;
        transform: translate(-50%, -50%);
    }
}


@media (max-width: 1024px) {
    header img {
        max-width: 250px;
    }
}

@media (max-width: 768px) {

    header ul,
    header button {
        display: none;
    }
}

/* ========== HERO & ABOUT ========== */
section.hero,
section.about {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.hero-text,
.about-text {
    padding: clamp(2rem, 5vw, 6rem);
}

.hero-text button {
    margin-top: 3rem;
}

.about-text p {
    margin-top: 1.5rem;
}

@media (max-width: 900px) {

    section.hero,
    section.about {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text,
    .about-text {
        padding: 2rem;
    }
}

/* ========== BUTTONS ========== */
button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

button>a,
section.form form>button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    color: #fff;
    background-color: var(--primaryColor);
    border: 1px solid var(--primaryColor);
    border-radius: var(--borderRadius);
    transition: all 0.25s ease;
}

button.inverse>a {
    color: var(--primaryColor);
    background-color: transparent;
}

button>a:hover,
section.form form>button:hover {
    background-color: var(--secondaryColor);
    border-color: var(--secondaryColor);
}

/* ========== SERVICES ========== */
.services-container {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .services-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-item {
    background-color: var(--darkSectionBg);
    padding: 2rem;
    border-radius: var(--borderRadius);
}

/* ========== TESTIMONIALS ========== */
.testimonials-container {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .testimonials-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

section.clients {
    padding-inline: 1rem;
}

@media (max-width: 767px) {}

.client-testimonial {
    display: grid;
    padding: 2rem;
    border-radius: var(--borderRadius);
    border: 1px solid var(--secondaryColor);
}

.star-rate {
    display: flex;
    margin: 1rem 0;
}

.client-info {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1rem;
}

.client-info img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    grid-area: 1 / 1 / 3 / 2;
}

.client-info h4,
.client-info p {
    margin: 0;
}

/* ========== FORM ========== */
section.form {
    max-width: 1024px;
    margin: 6rem auto;
    text-align: center;
}

section.form h3 {
    margin: 2rem;
}

section.form form {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

section.form form>div {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
}

section.form form>div:has(textarea),
section.form form>button,
section.form form>div:has(input[type="checkbox"]) {
    grid-column: 1 / -1;
}

section.form form>div:has(input[type="checkbox"]) {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
}

section.form form>button {

    @media (min-width: 768px) {
        width: fit-content;
        margin: 0 auto;
    }
}

input,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--borderRadius);
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 200px;
}

/* ========== FOOTER ========== */
footer>section.darkBg {
    padding: 4rem 1rem 0;
}

footer .footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

footer .footer-top nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-size: 1rem;
    padding: 2rem 0;
}

footer .footer-bottom .policy {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-media {
    display: flex;
    gap: 1rem;
}

/* ========== SMALL SCREENS ========== */
@media (max-width: 600px) {
    section {
        margin: 4rem auto;
        padding: 0 1.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    p {
        font-size: 1rem;
    }

    .service-item,
    .client-testimonial {
        padding: 1.5rem;
    }

    .client-info img {
        width: 60px;
        height: 60px;
    }

    section.form form {
        grid-template-columns: 1fr;
    }

    footer .footer-top,
    footer .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}