/*
    Kail's Landscaping structure styles.

    This file controls page layout, spacing, sizing, and positioning.
    Do not put colors, shadows, or visual theme styles in this file.
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.site-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.hero-content {
    max-width: 46rem;
}

.hero-title {
    max-width: 44rem;
    font-size: clamp(2.4rem, 4.2vw, 4.25rem);
    line-height: 1.12;
}

.hero-quick-contact {
    max-width: 100%;
}

.hero-visual-card {
    position: relative;
    max-width: 30rem;
    min-height: 20rem;
    margin-right: auto;
    margin-left: auto;
    overflow: visible;
}

.hero-selfie {
    width: auto;
    max-width: 100%;
    max-height: 22rem;
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.hero-logo-overlay {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    width: 44%;
    max-width: 13rem;
    min-width: 9rem;
    z-index: 2;
}

.hero-logo-overlay-image {
    width: 100%;
    height: auto;
    display: block;
}

.navbar-logo {
    width: auto;
    height: 2.25rem;
    display: block;
}

.form-wrapper {
    max-width: 54rem;
    margin-right: auto;
    margin-left: auto;
}

.img-fluid-cover {
    width: 100%;
    height: auto;
    display: block;
}

.equal-height-card {
    height: 100%;
}

/* Rich text content */

.rich-text-block p:last-child {
    margin-bottom: 0;
}

.rich-text-block ul,
.rich-text-block ol {
    margin-bottom: 0;
}

/* Service cards */

.service-card {
    overflow: hidden;
}

.service-card-image {
    width: 100%;
    height: 13rem;
    object-fit: cover;
    display: block;
}

/* Admin layout */

.admin-layout {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 1rem;
}

.admin-menu {
    display: grid;
    gap: 0.5rem;
}

.admin-menu a {
    display: block;
    padding: 0.6rem 0.75rem;
    text-decoration: none;
}

.admin-section {
    scroll-margin-top: 1.5rem;
}

.admin-inner-panel {
    padding: 1rem;
}

.admin-image-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 11rem;
}

.admin-image-preview img {
    max-height: 11rem;
    width: auto;
    max-width: 100%;
}

.admin-help-icon {
    vertical-align: middle;
}

.admin-help-text {
    margin-top: 0.35rem;
}

.service-admin-card {
    display: block;
}

/* Admin rich text editor */

.admin-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.admin-rich-editable {
    min-height: 8rem;
    padding: 0.75rem;
}

.admin-rich-editable ul,
.admin-rich-editable ol {
    margin-bottom: 0;
}

.admin-rich-editable p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1199.98px) {
    .hero-title {
        font-size: clamp(2.25rem, 4vw, 3.7rem);
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-visual-card {
        max-width: 27rem;
        min-height: 18rem;
    }

    .hero-selfie {
        max-height: 20rem;
    }

    .hero-logo-overlay {
        width: 42%;
        min-width: 8rem;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .site-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .navbar-logo {
        height: 2rem;
    }

    .hero-visual-card {
        max-width: 23rem;
        min-height: 16rem;
    }

    .hero-selfie {
        max-height: 18rem;
    }

    .hero-logo-overlay {
        right: 0.5rem;
        bottom: 0.5rem;
        width: 44%;
        min-width: 7.25rem;
    }

    .service-card-image {
        height: 11rem;
    }
}