*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-family: Arial, sans-serif;
    background-color: var(--background);
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 20px;
}

:root {
    --background: #ffffff;
    --text: #131313;
    --button-text: #ffffff;
    --button: #A18863;
    --button-100: #885436;
    --primary: #558653;
    --primary-400: #29e729;
    --primary-800: #129c29;
    --white: #ffffff;
    --base: #888;
    --base-100: #f1f1f1;
    --base-800: #000;
    --yellow: #d1c6a6;
    --yellow-400: #dbca86;
    --yellow-800: #ad8c4f;
}

/* --- Global Utilities --- */

.container {
    max-width: 1440px;
    margin: 30px auto 50px;
    gap: 30px;

    @media (max-width: 768px) {
        padding-left: 30px;
        padding-right: 30px;
    }
}

a {
    text-decoration: none;
    color: var(--white);

    &:hover {
        text-decoration: underline;
    }
}

h1 {
    font-size: 55px;
    line-height: 1;
    margin-bottom: 10px;

    small {
        display: block;
        font-weight: 100;
    }
}

h2 {
    line-height: 1;
    margin-bottom: 10px;
    text-align: center;
    color: var(--base-800);

    small {
        display: block;
        font-weight: 100;
        font-size: 0.5em;
        color: var(--base);
    }

    @media (max-width: 1024px) {
        font-size: 48px;
    }
}

.button {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--button);
    font-size: 20px;
    font-weight: bold;
    color: var(--button-text);
    border-radius: 10px;
    transition: ease 0.3s all;

    &:hover {
        text-decoration: none;
        background-color: var(--button-100);
    }

    &.white {
        background-color: white;
        color: var(--base-800);

        &:hover {
            color: var(--base-800);
        }
    }

    &.black {
        background-color: black;
        color: white;

        &:hover {
            background-color: var(--base-800);
            color: var(--base-100);
        }
    }
}

/* --- Header & Navigation --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(58, 58, 58, 0.5);
    backdrop-filter: blur(1px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(22, 22, 22, 0.1);

    .logo-holder {
        display: flex;
        align-items: center;
        gap: 15px;
        color: #ffffff;

        &:hover {
            text-decoration: none;
        }

        .logo img {
            width: 75px;
            height: 75px;
            border-radius: 50%;
        }

        .logo-text {
            font-family: "Domine", serif;
            font-size: 28px;
            font-weight: 500;
            white-space: nowrap;
        }
    }

    nav {
        display: flex;
        align-items: center;

        #menu {
            display: flex;
            list-style: none;
            gap: 30px;
            align-items: center;

            li a {
                color: #ffffff;
                font-size: 16px;
                font-weight: 500;
                transition: color 0.3s ease;

                &:not(.button):hover {
                    color: var(--button);
                }
            }
        }

        a.active {
            background-color: #ffffff2d;
            border-radius: 10px;
            pointer-events: none;
            cursor: default;
        }

        .mobile-toggle {
            display: none;
            color: #ffffff;
            cursor: pointer;
        }
    }

    @media (max-width: 992px) {
        padding: 15px 20px;

        .logo-holder .logo-text {
            font-size: 18px;
        }

        nav {
            .mobile-toggle {
                display: block;
            }

            #menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: rgba(43, 43, 43, 0.568);
                flex-direction: column;
                padding: 20px 0;
                text-align: center;
                gap: 20px;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);

                &.active {
                    display: flex;
                }

                li {
                    width: 80%;

                    a {
                        display: block;
                        padding: 10px;
                        font-size: 18px;
                    }
                }
            }
        }
    }
}

/* --- Hero Section --- */

.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;

    .hero-bg,
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: rgba(31, 25, 21, 0.5);
        z-index: -1;
    }

    .hero-content {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        max-width: 650px;
        margin-top: 50px;

        .hero-info {
            h1 {
                color: white;
                font-size: 4rem;
                font-family: "Story Script", sans-serif;
                font-weight: 200;
                margin-bottom: 15px;
                line-height: 1.1;

                @media (max-width: 768px) {
                    font-size: 3rem;
                }
            }

            p {
                color: #f1f1f1;
                font-weight: 500;
                font-size: 1.35rem;
                line-height: 1.6;

                @media (max-width: 768px) {
                    font-size: 1rem;
                }
            }
        }

        .social-links {
            display: flex;
            gap: 15px;

            a {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 45px;
                height: 45px;
                background-color: white;
                color: var(--base-800);
                border-radius: 50%;
                transition: 0.3s ease;

                &:hover {
                    background-color: var(--accent-color);
                    color: white;
                    transform: translateY(-3px);
                }
            }
        }
    }
}

/* --- About Section --- */

.about-section {
    .about-container {
        padding: 10px;
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 50px;
        align-items: start;

        .about-image img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 25px;
        }

        .about-content {
            .section-tag {
                display: flex;
                align-items: center;
                gap: 5px;
                margin-bottom: 10px;

                span {
                    font-size: 18px;
                    letter-spacing: 3px;
                }

                .line {
                    flex: 1;
                    height: 1px;
                    background: #cbd5e1;
                }
            }

            h2 {
                font-size: 35px;
                line-height: 1;
                margin-bottom: 25px;
                margin-top: 25px;
                font-weight: 700;
                text-align: start;
            }

            .about-block {
                margin-bottom: 12px;

                h3 {
                    font-size: 25px;
                    margin-bottom: 10px;
                }

                p {
                    font-size: 18px;
                    line-height: 1.25;
                    margin-bottom: 18px;
                }
            }
        }

        @media (max-width: 1300px) {
            grid-template-columns: 1fr;

            .about-image,
            .about-content {
                margin: 0px 40px;
                text-align: center;
            }

            .about-content h2 {
                text-align: center;
            }
        }

        @media (max-width: 800px) {
            gap: 25px;

            .about-image,
            .about-content {
                margin: 0;
            }

            .about-content {
                h2 {
                    font-size: 32px;
                    line-height: 1.2;
                    margin-bottom: 25px;
                    margin-top: 15px;
                }

                .about-block {
                    h3 {
                        font-size: 24px;
                    }

                    p {
                        font-size: 16px;
                        line-height: 1.5;
                    }
                }

                .section-tag span {
                    font-size: 15px;
                }
            }
        }
    }
}

/* --- Offer Section --- */

.offer-section {
    h2 {
        font-size: 54px;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 40px;

        span {
            color: var(--button);
            font-style: italic;
        }

        @media (max-width: 768px) {
            font-size: 38px;
        }
    }

    .offer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;

        @media (max-width: 1100px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (max-width: 768px) {
            grid-template-columns: 1fr;
        }
    }

    .offer-card {
        background: #f3f4f6;
        border-radius: 10px;
        overflow: hidden;
        transition: 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

        &:hover {
            transform: translateY(-6px);
        }

        .image-placeholder {
            width: 100%;
            height: 200px;
            overflow: hidden;

            @media (max-width: 768px) {
                height: 220px;
            }

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }
        }

        h3 {
            text-align: center;
            padding: 22px 16px;
            font-size: 24px;
            font-weight: 500;
            color: #374151;

            @media (max-width: 768px) {
                font-size: 20px;
            }
        }
    }
}

/* --- Expertise Section --- */

.expertise-section {
    text-align: center;

    h2 {
        font-size: 50px;
        margin-bottom: 12px;
        font-weight: 700;

        @media (max-width: 768px) {
            font-size: 38px;
        }
    }

    .expertise-subtitle {
        font-size: 22px;
        color: #6b7280;
        margin-bottom: 40px;
    }

    .expertise-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;

        @media (max-width: 992px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (max-width: 768px) {
            grid-template-columns: 1fr;
        }
    }

    .expertise-card {
        background: #e6e6e6;
        border-radius: 24px;
        padding: 15px 25px;
        display: flex;
        align-items: center;
        gap: 22px;
        transition: 0.3s ease;

        &:hover {
            transform: translateY(-5px);
        }

        @media (max-width: 768px) {
            padding: 24px;
        }

        .expertise-icon {
            width: 72px;
            height: 72px;
            min-width: 72px;
            border-radius: 18px;
            background: #f8efe1;
            color: #a8792c;
            font-size: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .expertise-content {
            text-align: left;

            h3 {
                font-size: 18px;
                color: #1f3554;
                margin-bottom: 8px;

                @media (max-width: 768px) {
                    font-size: 22px;
                }
            }

            p {
                font-size: 18px;
                color: #6b7280;

                @media (max-width: 768px) {
                    font-size: 16px;
                }
            }
        }
    }
}

/* --- Process Section --- */

.process-section {
    text-align: center;

    h2 {
        font-size: 50px;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .process-text {
        margin: auto;
        color: #6b7280;
        line-height: 1.8;
        font-size: 18px;
    }

    .process-wrapper {
        margin-top: 40px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;

        .process-item {
            width: 180px;
            text-align: center;
            transition: 0.3s ease;

            &:hover {
                transform: translateY(-5px);
            }

            .icon-box {
                width: 90px;
                height: 90px;
                border: 3px solid #a8792c;
                border-radius: 24px;
                margin: auto;
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: 36px;
                background: white;
            }

            h3 {
                margin-top: 20px;
                font-size: 15px;
                line-height: 1.4;
            }

            p {
                margin-top: 15px;
                color: #6b7280;
                line-height: 1.7;
                font-size: 15px;
            }
        }

        .arrow {
            font-size: 34px;
            color: #a8792c;
            margin-top: 30px;

            @media (max-width: 1024px) {
                display: none;
            }
        }

        /* Process Animation Fix */
        .process-item.reveal:nth-child(1) {
            transition-delay: 0s;
        }

        .process-item.reveal:nth-child(3) {
            transition-delay: 0.15s;
        }

        .process-item.reveal:nth-child(5) {
            transition-delay: 0.3s;
        }

        .process-item.reveal:nth-child(7) {
            transition-delay: 0.45s;
        }

        .process-item.reveal:nth-child(9) {
            transition-delay: 0.6s;
        }

        .process-item.reveal:nth-child(11) {
            transition-delay: 0.75s;
        }
    }
}

/* --- Services Section --- */

.services-section {
    text-align: center;

    h2 {
        font-size: 50px;
        font-weight: 700;

        @media (max-width: 768px) {
            font-size: 40px;
        }
    }

    .services-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;

        @media (max-width: 992px) {
            grid-template-columns: 1fr;
            margin: 50px;
        }

        .services-card {
            position: relative;
            background: #f8f8f8;
            border: 1px solid #ebe5dc;
            border-radius: 12px;
            padding: 10px 5px;
            transition: 0.3s ease;

            @media (max-width: 768px) {
                padding: 45px 25px;
            }

            &:hover {
                transform: translateY(-6px);
            }

            &.active {
                background-color: var(--button);
                border: none;
                color: white;

                p,
                .arrow {
                    color: white;
                }
            }

            .popular-badge {
                position: absolute;
                top: -14px;
                right: 24px;
                background: #ed415b;
                color: white;
                font-size: 13px;
                font-weight: 700;
                padding: 8px 16px;
                border-radius: 30px;
            }

            .services-icon {
                width: 75px;
                height: 75px;
                margin: 0 auto 35px;
                border-radius: 18px;
                background: #efeae1;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 34px;
            }

            h3 {
                font-size: 25px;
                margin-bottom: 12px;
                font-weight: 700;

                @media (max-width: 768px) {
                    font-size: 28px;
                }
            }

            p {
                font-size: 15px;
                color: #6b7280;
                margin-bottom: 45px;

                @media (max-width: 768px) {
                    font-size: 17px;
                }
            }
        }
    }

    .services-btn {
        margin-top: 45px;
        background-color: var(--button);
        color: white;
        border: none;
        border-radius: 40px;
        padding: 18px 42px;
        font-size: 22px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.3s ease;

        @media (max-width: 768px) {
            width: 50%;
            font-size: 18px;
        }

        &:hover {
            background-color: var(--button-100);
            transform: translateY(-3px);
        }
    }
}

/* --- Stats Section --- */

.stats {
    display: flex;
    flex-direction: column;
    font-size: 15px;

    h2 {
        font-size: 50px;
    }

    .stats-list {
        display: flex;
        gap: 30px;
        justify-content: center;

        @media (max-width: 1024px) {
            flex-wrap: wrap;
        }

        .stat-box {
            border-left: 1px solid #999;
            padding: 0px 15px;
            margin: 20px;
            transition: 0.3s ease;

            &:hover {
                transform: translateY(-3px);
            }

            .stat-number {
                font-size: 50px;
                font-weight: bold;
            }
        }
    }
}

/* --- Contact Section --- */

.contact-heading h2 {
    text-align: center;
    font-size: 42px;
}

.contact {
    display: flex;
    gap: 40px;
    padding: 50px;
    border-radius: 28px;
    background: var(--base-100);

    @media (max-width: 900px) {
        flex-direction: column;
        padding: 35px 25px;
        margin: 20px;
    }

    .contact-left {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;

        h2 {
            font-size: 48px;
            line-height: 1.2;
            margin-bottom: 20px;
            text-align: start;

            @media (max-width: 900px) {
                font-size: 36px;
            }

            @media (max-width: 463px) {
                text-align: center;
            }
        }

        .contact-text {
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 35px;
            max-width: 400px;
            text-align: start;

            @media (max-width: 463px) {
                text-align: center;
            }
        }

        .contact-logo {
            display: flex;
            justify-content: center;
            align-items: center;

            img {
                width: 256px;
            }
        }
    }

    .contact-right {
        flex: 1;
        border-left: 1px solid #bdbdbd;
        padding-left: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 35px;

        @media (max-width: 900px) {
            border-left: none;
            border-top: 1px solid #bdbdbd;
            padding-left: 0;
            padding-top: 35px;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 18px;

            .icon {
                min-width: 50px;
                height: 50px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                background: #fff;

                svg {
                    width: 22px;
                    height: 22px;
                }
            }

            .details {
                h4 {
                    font-size: 18px;
                    margin-bottom: 6px;
                }

                p {
                    font-size: 16px;
                    line-height: 1.6;
                    color: #333;
                }
            }
        }
    }
}

/* --- Footer --- */

.footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    background-color: var(--base-100);
    padding: 25px 100px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1;
    font-size: 15px;

    .admin {
        color: var(--base-800);

        &:hover {
            text-decoration: none;
            cursor: text;
        }
    }

    .up-btn {
        position: absolute;
        right: 30px;
        bottom: 10px;
        color: #e0e0e0;
        width: 50px;
        height: 50px;
        border-radius: 25px;
        padding: 12px 10px;
        text-align: center;
    }
}

/* --- Floating Actions --- */

.float {
    position: fixed;
    bottom: 90px;
    /* Increased from 30px to avoid overlapping the up button */
    right: 20px;
    z-index: 1000;
    /* Ensure it stays above everything */
    display: flex;
    align-items: center;
    /* Aligns the text and button horizontally */
    gap: 12px;
    /* Adds space between the message and button */
}

.float .float-button {
    width: 60px;
    height: 60px;
    display: flex;
    background-color: var(--primary-400);
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    /* Perfect circle */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: 300ms ease;
    position: relative;
    /* Positioning is now handled by the .float container */

    &:hover {
        background-color: var(--primary-800);
        transform: scale(1.1);
    }

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--primary-400);
        border-radius: inherit;
        z-index: -1;
        animation: pulse-ring 2s ease-out infinite;
    }
}

.float .message {
    display: flex;

    p {
        margin: 0;
        white-space: nowrap;
        /* Forces text to stay on one line */
        padding: 8px 16px;
        color: #333;
        font-size: 13px;
        font-weight: 600;
        border: 1px solid #333;
        border-radius: 20px;
        /* Modern pill shape */
        /* box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.1); */

        /* Slight transparency/blur so content behind it is vaguely visible */
        background-color: rgba(255, 255, 255, 0.479);
        backdrop-filter: blur(4px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.under-construction {
    display: flex;
    padding: 25px 30px;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

/* --- Scroll Reveal Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal:nth-child(6) {
    transition-delay: 0.5s;
}

.reveal:nth-child(7) {
    transition-delay: 0.6s;
}

.reveal:nth-child(8) {
    transition-delay: 0.7s;
}