/* =========================================
   THE FAGAN GROUP
   Landing Page
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: #111111;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.5;
}

a {
    color: inherit;
}


/* =========================================
   PAGE
========================================= */

.page-wrapper {
    width: min(1100px, 90%);
    min-height: 100vh;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
}


/* =========================================
   HEADER / LOGO
========================================= */

/* =========================================
   HEADER / LOGO
========================================= */

.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 45px 0 35px;
}

.logo {
    display: inline-block;
    text-decoration: none;
}

.logo img {
    display: block;
    width: 260px;
    max-width: 80vw;
    height: auto;

    transition: opacity 0.25s ease,
                transform 0.25s ease;
}

.logo:hover img {
    opacity: 0.8;
    transform: scale(1.02);
}


/* Mobile */

@media (max-width: 650px) {

    .site-header {
        padding: 30px 0 25px;
    }

    .logo img {
        width: 210px;
    }

}


/* =========================================
   MAIN
========================================= */

.main-content {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================
   INTRO
========================================= */

.intro {
    text-align: center;

    max-width: 760px;

    padding: 70px 0 65px;
}

.eyebrow {
    margin-bottom: 20px;

    font-size: 0.68rem;
    font-weight: 600;

    letter-spacing: 0.32em;

    color: #777;
}

.intro h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);

    line-height: 0.98;

    font-weight: 500;

    letter-spacing: -0.055em;
}

.intro-text {
    max-width: 530px;

    margin: 30px auto 0;

    font-size: 1rem;

    color: #666;
}


/* =========================================
   MENU
========================================= */

.brand-menu {
    width: min(800px, 100%);
    border-top: 1px solid #d4d4cf;
    margin-bottom: 100px;
}

.menu-link {
    position: relative;

    display: grid;
    grid-template-columns: 60px 1fr 50px;
    align-items: center;

    min-height: 92px;
    padding: 16px 0;

    border-bottom: 1px solid #d4d4cf;

    text-decoration: none;
    color: #111111;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        padding 0.25s ease;
}

.menu-link:hover {
    background-color: #111111;
    color: #ffffff;
    padding-left: 15px;
    padding-right: 15px;
}


/* Number */

.link-number {
    align-self: center;

    font-size: 0.68rem;
    font-weight: 500;

    letter-spacing: 0.1em;

    opacity: 0.4;
}


/* Title + Description */

.link-content {
    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 5px;

    padding-right: 20px;
}

.link-title {
    display: block;

    font-size: clamp(1.1rem, 2.3vw, 1.55rem);

    font-weight: 450;

    line-height: 1.2;

    letter-spacing: -0.02em;
}

.link-description {
    display: block;

    max-width: 620px;

    font-size: 0.76rem;

    font-weight: 400;

    line-height: 1.45;

    letter-spacing: 0.01em;

    color: #858585;

    transition: color 0.25s ease;
}


/* Description changes on hover */

.menu-link:hover .link-description {
    color: #bdbdbd;
}


/* Arrow */

.arrow {
    justify-self: end;

    font-size: 1.3rem;

    transition: transform 0.25s ease;
}

.menu-link:hover .arrow {
    transform: translate(5px, -5px);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .menu-link {
        grid-template-columns: 40px 1fr 25px;

        min-height: 88px;

        padding: 15px 0;
    }

    .menu-link:hover {
        padding-left: 8px;
        padding-right: 8px;
    }

    .link-content {
        gap: 4px;
        padding-right: 10px;
    }

    .link-title {
        font-size: 1.1rem;
    }

    .link-description {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .arrow {
        font-size: 1rem;
    }

}


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

.site-footer {
    padding-bottom: 35px;
}

.footer-line {
    width: 100%;
    height: 1px;

    background-color: #d4d4cf;
}

.footer-content {
    display: flex;

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

    gap: 20px;

    padding-top: 22px;

    font-size: 0.73rem;

    color: #777;

    letter-spacing: 0.04em;
}

.footer-content a {
    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-content a:hover {
    color: #111;
}


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

@media (max-width: 650px) {

    .page-wrapper {
        width: 92%;
    }

    .site-header {
        padding-top: 35px;
    }

    .logo-main {
        font-size: 1.1rem;
    }

    .intro {
        padding: 55px 0;
    }

    .intro h1 {
        font-size: 3.2rem;
    }

    .menu-link {
        grid-template-columns: 42px 1fr 30px;

        min-height: 70px;
    }

    .link-title {
        font-size: 1.15rem;
    }

    .footer-content {
        flex-direction: column;

        align-items: flex-start;
    }

}

/* =========================================
   LOADER PAGE
========================================= */

.loader-page {
    margin: 0;

    width: 100%;
    min-height: 100vh;

    background: #ffffff;
    color: #111111;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

    position: relative;
}


/* =========================================
   BACK BUTTON
========================================= */

.back-button {
    position: absolute;

    top: 40px;
    left: 50px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 20px;

    border: 1px solid #d4d4cf;

    color: #111111;

    text-decoration: none;

    font-size: 0.78rem;
    font-weight: 500;

    letter-spacing: 0.08em;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.back-button:hover {
    background-color: #111111;
    color: #ffffff;

    transform: translateX(-3px);
}

.back-arrow {
    font-size: 1.1rem;

    transition: transform 0.25s ease;
}

.back-button:hover .back-arrow {
    transform: translateX(-4px);
}


/* =========================================
   LOADER CONTAINER
========================================= */

.loader-container {
    width: 100%;
    min-height: 100vh;

    display: flex;

    justify-content: center;
    align-items: center;
}


/* =========================================
   LOADER
========================================= */

.loader {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 25px;
}


/* Circular Loader */

.loader-circle {
    width: 48px;
    height: 48px;

    border: 1px solid #dddddd;
    border-top-color: #111111;

    border-radius: 50%;

    animation: loader-spin 0.9s linear infinite;
}


/* Loading Text */

.loader-text {
    font-size: 0.7rem;
    font-weight: 500;

    letter-spacing: 0.22em;

    text-transform: uppercase;

    color: #777777;
}


/* =========================================
   ANIMATION
========================================= */

@keyframes loader-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .back-button {
        top: 25px;
        left: 25px;

        padding: 11px 16px;
    }

}