/* GLobal variables */
:root {
    /* Used to set the landing box starting point when moving from left to right */
    --landing-box-left: -800px;
    /* Padding used throughout the about section */
    --about-padding: 25px;
}

/* --------------- */
/* Landing Section */
/* --------------- */

.hero {
    background: url("/images/landing.jpg");
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.landing-box {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: var(--dark-transparent-bg);
    padding: 15px;
    left: 50px;
    color: var(--light-text);
    padding-left: 40px;
    padding-right: 40px;
    animation: leftToRight 1s forwards ease-out;
    animation-delay: 0.5s;
    left: var(--landing-box-left);
    padding-top: 0px;
    padding-bottom: 30px;
}

.landing-box h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

.landing-box p {
    background: var(--highlight-color);
    padding: 5px;
    color: var(--link-text);
    margin-top: -5px;
    text-align: center;
    font-size: 1.5rem;
}

.landing-box ul {
    font-size: 1.5rem;
}

.landing-box a {
    display: flex;
    align-self: center;
    justify-self: center;
}

/*  */
.landing-box a {
    animation: var(--small-bump);
}

/* ------------- */
/* About Section */
/* ------------- */
.about {
    width: 100%;
    /* height: 100vh; */
    display: flex;
    justify-content: flex-start;
    background: url("/images/pages/home/gray-horse-bg.png");
    background-color: linear-gradient(to bottom,
            #FAF9F2 0%,
            #F1F0E4 100%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}

.about-content {
    max-width: 1000px;
    margin-left: 5rem;
}

.basic-info {
    display: flex;
    flex-direction: column;
    padding: var(--about-padding);
}

.basic-info h1 {
    color: var(--link-text);
}

.basic-info-content {
    display: flex;
    gap: 25px;
    margin-top: 25px;
}

.basic-info-text {
    max-width: 500px;
}

.stable-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.what-we-do {
    display: flex;
    padding: 25px;
    gap: 25px;
}

.what-we-do-content {
    max-width: 500px;
}

.follow-us {
    padding: var(--about-padding);
}

.lessons-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------------- */
/* Services Section */
/* ---------------- */

.services {
    width: 100%;
    min-height: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)),
        url("/images/pages/home/barn-siding-bg.jpg");
    background-size: contain;
}

.services-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.services-card {
    border: 5px solid var(--highlight-color);
    width: 18%;
    height: 300px;
    text-align: center;
    padding: 25px;

    background:
        linear-gradient(rgba(255, 255, 255, 0.85),
            rgba(255, 255, 255, 0.85)),
        url("/images/pages/home/lucky-7.png");

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
}

.services-card h1 {
    color: var(--link-text);
    font-weight: bold;
}

.services-card .card-footer {
    margin-top: auto;
    align-self: center;
}

.card-footer a {
    padding: 15px;
    padding-left: 25px;
    padding-right: 25px;
    color: white;
}

.card-footer a:hover {
    color: var(--link-text);
    text-decoration: none;
}

/* ------- */
/* Effects */
/* ------- */

/* Makes the first landing section go from left to right */
@keyframes leftToRight {
    from {
        left: var(--landing-box-left);
    }

    to {
        left: 50px;
    }
}

/* Fade in as user scrolls */
.reveal>* {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal.is-visible>*:nth-child(1) {
    transition-delay: 0ms;
}

.reveal.is-visible>*:nth-child(2) {
    transition-delay: 100ms;
}

.reveal.is-visible>*:nth-child(3) {
    transition-delay: 200ms;
}

.reveal.is-visible>*:nth-child(4) {
    transition-delay: 300ms;
}


/* ----------- */
/* Mobile Site */
/* ----------- */
@media (max-width: 1000px) {
    .hero {
        margin: 0;
        position: static;
        display: flex;
        justify-content: center;
    }

    .landing-box {
        position: static;
        margin-top: 115px;
        text-align: center;
    }

    .landing-box ul {
        text-align: left;
    }

    .services-cards {
        flex-direction: column;
        justify-content: center;
        padding: 15px;
    }

    .services {
        height: auto;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .services-card {
        width: auto;
    }

    .basic-info {
        padding: 10px;
    }

    .basic-info-content, .what-we-do {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        max-width: 90%;
        margin-left: 0;
    }

    .what-we-do {
        justify-content: center;
    }

    .what-we-do-content {
        margin: 0;
    }
}