/* =========================================
   DAVIS TILE — GLOBAL SITE STYLES
   ========================================= */


/* =========================================
   DESIGN TOKENS
   ========================================= */

:root {
    --color-charcoal: #242522;
    --color-charcoal-soft: #30312d;
    --color-stone: #8a8175;
    --color-stone-light: #d8d1c7;
    --color-sand: #eee9e1;
    --color-cream: #f8f5ef;
    --color-white: #ffffff;
    --color-copper: #9b6847;
    --color-text: #343530;
    --color-muted: #696a64;
    --font-heading: "Libre Baskerville", Georgia, serif;
    --font-body: "Manrope", Arial, sans-serif;
    --container-width: 1200px;
    --section-spacing: 7rem;
    --transition: 180ms ease;
}


/* =========================================
   GLOBAL RESET AND BASE STYLES
   ========================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background-color: var(--color-cream);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--color-charcoal);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================
   SITE HEADER
   ========================================= */

.site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
}

    .site-header .navbar {
        min-height: 90px;
        padding: 1rem 0;
        background: linear-gradient( to bottom, rgba(20, 21, 19, 0.88), rgba(20, 21, 19, 0) );
    }


/* =========================================
   NAVBAR BRAND
   ========================================= */

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.site-logo {
    width: 205px;
    height: auto;
    object-fit: contain;
}



/* =========================================
   NAVIGATION LINKS
   ========================================= */

.site-header .nav-link {
    position: relative;
    margin-left: 1.3rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

    .site-header .nav-link:hover,
    .site-header .nav-link:focus {
        color: var(--color-white);
    }

    .site-header .nav-link::after {
        position: absolute;
        right: 0.5rem;
        bottom: 0.2rem;
        left: 0.5rem;
        height: 1px;
        content: "";
        background-color: var(--color-stone-light);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform var(--transition);
    }

    .site-header .nav-link:hover::after,
    .site-header .nav-link:focus::after {
        transform: scaleX(1);
    }


/* =========================================
   SHARED SECTION STYLES
   ========================================= */

.section {
    padding: var(--section-spacing) 0;
}

.section-eyebrow {
    margin-bottom: 1rem;
    color: var(--color-copper);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-description {
    max-width: 720px;
    color: var(--color-muted);
    font-size: 1.05rem;
}


/* =========================================
   SITE FOOTER
   ========================================= */

.site-footer {
    padding: 5.5rem 0 2rem;
    background-color: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.68);
}


/* =========================================
   FOOTER MAIN GRID
   ========================================= */

.footer-main {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) 1fr 1fr;
    gap: 4rem;
    align-items: start;
}


/* =========================================
   FOOTER BRAND
   ========================================= */

.footer-brand {
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 1.4rem;
    line-height: 1;
}

.footer-brand-name {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.footer-brand-subtitle {
    margin-top: 0.45rem;
    color: var(--color-stone-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.footer-description {
    max-width: 430px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
    line-height: 1.8;
}


/* =========================================
   FOOTER HEADINGS
   ========================================= */

.footer-heading {
    margin-bottom: 1.35rem;
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* =========================================
   FOOTER NAVIGATION
   ========================================= */

.footer-link-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

    .footer-link-list a {
        position: relative;
        color: rgba(255, 255, 255, 0.66);
        font-size: 0.92rem;
    }

        .footer-link-list a::after {
            position: absolute;
            right: 0;
            bottom: -0.2rem;
            left: 0;
            height: 1px;
            content: "";
            background-color: var(--color-copper);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform var(--transition);
        }

        .footer-link-list a:hover,
        .footer-link-list a:focus {
            color: var(--color-white);
        }

            .footer-link-list a:hover::after,
            .footer-link-list a:focus::after {
                transform: scaleX(1);
            }


/* =========================================
   FOOTER CONTACT
   ========================================= */

.footer-contact-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

    .footer-contact-list p {
        margin: 0;
        color: rgba(255, 255, 255, 0.56);
        font-size: 0.9rem;
        line-height: 1.65;
    }


/* =========================================
   FOOTER DIVIDER
   ========================================= */

.footer-divider {
    width: 100%;
    height: 1px;
    margin: 4rem 0 1.8rem;
    background-color: rgba(255, 255, 255, 0.11);
}


/* =========================================
   FOOTER BOTTOM
   ========================================= */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.78rem;
}

    .footer-bottom p {
        margin: 0;
    }

    .footer-bottom a {
        color: var(--color-stone-light);
    }

        .footer-bottom a:hover,
        .footer-bottom a:focus {
            color: var(--color-white);
        }


/* =========================================
   TABLET RESPONSIVE STYLES
   ========================================= */

@media (max-width: 991.98px) {
    :root {
        --section-spacing: 5rem;
    }

    .site-header .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background-color: rgba(36, 37, 34, 0.97);
    }

    .site-header .nav-link {
        margin-left: 0;
        padding: 0.8rem 0;
    }

    .footer-main {
        grid-template-columns: 1.4fr 1fr;
        gap: 3.5rem;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .site-logo {
        width: 180px;
    }
}


/* =========================================
   MOBILE RESPONSIVE STYLES
   ========================================= */

@media (max-width: 767.98px) {
    .site-footer {
        padding-top: 4.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .footer-contact {
        grid-column: auto;
    }

    .footer-divider {
        margin-top: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.7rem;
    }

    .site-logo {
        width: 155px;
    }
}
