/* ===== GLOBAL RESET ===== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    background-color: #f6f1ea;
    color: #4a4036;
    line-height: 1.8;
    overflow-x: hidden;
    margin-top: 100px;
}

/* ===== NAVBAR ===== */
nav {
    width: calc(100% - 48px);
    max-width: 1400px;
    margin: 24px auto 0;
    padding: 18px 28px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;

    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

/* ===== NAVBAR LOGO ===== */

.nav-logo {
    color: #1d1d1d;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;

    transition:
        color 0.3s ease,
        letter-spacing 0.3s ease;
}

.nav-logo:hover {
    color: #9caf9f;
    letter-spacing: 5px;
}

/* ===== NAVBAR LINKS ===== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    position: relative;
    color: #1d1d1d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.35s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;

    width: 0;
    height: 2px;

    background-color: #9caf9f;
    border-radius: 999px;

    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #9caf9f;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ===== FOOTER ===== */

footer {
    background-color: #1d1d1d;
    color: #f7f7f5;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 25px;
}

/* ===== FOOTER LOGO ===== */

.footer-logo {
    margin-bottom: 45px;
}

.footer-logo a {
    color: #f7f7f5;
    text-decoration: none;
}

.footer-logo h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-logo p {
    max-width: 450px;
    color: #9d9d9d;
    font-size: 1rem;
    line-height: 1.8;
}

/* ===== FOOTER LINKS ===== */

.footer-links {
    display: flex;
    justify-content: space-between;
    gap: 35px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.footer-navigation,
.footer-services,
.footer-contact,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

/* ===== FOOTER TITLES ===== */

.footer-links h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

/* ===== FOOTER LINKS & TEXT ===== */

.footer-navigation a,
.footer-contact a,
.footer-social a {
    text-decoration: none;
    color: #9d9d9d;
    transition: color 0.3s ease;
}

.footer-navigation a:hover,
.footer-contact a:hover,
.footer-social a:hover {
    color: #9caf9f;
}

.footer-services p {
    margin: 0;
    color: #9d9d9d;
}

/* ===== FOOTER SOCIAL ICONS ===== */

.footer-social a {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #9d9d9d;
    text-decoration: none;

    transition:
        color .3s ease,
        transform .3s ease;
}

.footer-social a:hover {
    color: #9caf9f;
    transform: translateX(4px);
}

.footer-social i {
    width: 18px;
    font-size: 1rem;
}

/* ===== FOOTER BOTTOM ===== */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;

    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 25px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #7d7d7d;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

    /* ===== BODY ===== */
    body {
        margin-top: 150px;
    }

    /* ===== NAVBAR ===== */
    nav {
        width: calc(100% - 30px);
        padding: 18px 20px;
        flex-direction: column;
        gap: 15px;
        border-radius: 28px;
    }

    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    /* ===== MOBILE NAVBAR UNDERLINE ===== */

    .nav-links a:hover::after {
        width: 0;
    }

    .nav-links a.active::after {
        width: 100%;
    }

    /* ==== FOOTER ==== */
    .footer-container {
        padding: 60px 25px 30px;
    }

    .footer-logo {
        text-align: center;
        margin-bottom: 50px;
    }

    .footer-logo p {
        margin: 0 auto;
    }

    .footer-links {
        flex-direction: column;
        gap: 45px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}