/* ==========================================================
   THE OPEN SHELF — CONTACT PAGE
========================================================== */


/* ==========================================================
   BASE
========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    background: #FAF8F4;

    color: #22334A;

    font-family:
        "Poppins",
        "Trebuchet MS",
        "Segoe UI",
        sans-serif;

}


/* ==========================================================
   SITE HEADER
========================================================== */

.site-header {

    width: min(1200px, 92%);

    margin: 0 auto;

    padding: 2rem 0 1rem;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.logo {

    display: flex;

    align-items: center;

    gap: 1rem;

    text-decoration: none;

}

.logo img {

    width: 90px;

    height: auto;

    display: block;

}

.logo span {

    font-family: "Poppins", sans-serif;

    font-size: 1.6rem;

    font-weight: 700;

    color: #22334A;

}

.site-header nav {

    display: flex;

    gap: 2.5rem;

}

.site-header nav a {

    font-family: "Inter", sans-serif;

    font-weight: 600;

    color: #394A5A;

    text-decoration: none;

    transition: color .25s ease;

}

.site-header nav a:hover {

    color: #92A98A;

}


/* ==========================================================
   CONTACT HERO
========================================================== */

.contact-hero {

    width: 100%;

    padding: 5rem 1.5rem 4rem;

    text-align: center;

}

.contact-hero-inner {

    width: min(750px, 100%);

    margin: 0 auto;

}

.contact-eyebrow {

    margin: 0 0 1rem;

    font-size: .75rem;

    font-weight: 600;

    letter-spacing: .22em;

    color: #8D9F84;

}

.contact-hero h1 {

    margin: 0;

    font-family: "Poppins", sans-serif;

    font-size: clamp(2.75rem, 6vw, 4.5rem);

    font-weight: 700;

    line-height: 1.08;

    letter-spacing: .02em;

    color: #22334A;

}

.contact-intro {

    max-width: 650px;

    margin: 1.5rem auto 0;

    font-size: 1.05rem;

    line-height: 1.85;

    color: #71808C;

}


/* ==========================================================
   CONTACT CARD
========================================================== */

.contact-section {

    width: 100%;

    padding: 1rem 1.5rem 5rem;

}

.contact-card {

    width: min(620px, 100%);

    margin: 0 auto;

    padding: 3.5rem 3rem;

    background: white;

    border: 1px solid #E8E3D9;

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 15px 40px rgba(34, 51, 74, .06);

}

.contact-card-icon {

    width: 58px;

    height: 58px;

    margin: 0 auto 1.25rem;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #F4F0E8;

    font-size: 1.5rem;

    color: #7F9276;

}

.contact-card-eyebrow {

    margin: 0 0 .75rem;

    font-size: .7rem;

    font-weight: 600;

    letter-spacing: .18em;

    color: #8D9F84;

}

.contact-card h2 {

    margin: 0;

    font-family: "Poppins", sans-serif;

    font-size: 2rem;

    font-weight: 700;

    color: #22334A;

}

.contact-card p {

    max-width: 500px;

    margin: 1rem auto 0;

    font-size: .95rem;

    line-height: 1.8;

    color: #71808C;

}

.contact-email {

    display: inline-block;

    margin-top: 1.5rem;

    padding: .85rem 1.4rem;

    background: #F4F0E8;

    border-radius: 999px;

    color: #394A5A;

    text-decoration: none;

    font-size: .95rem;

    font-weight: 600;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;

}

.contact-email:hover {

    background: #92A98A;

    color: white;

    transform: translateY(-2px);

}


/* ==========================================================
   RESOURCE SUGGESTION
========================================================== */

.contact-suggestion {

    width: 100%;

    padding: 5rem 1.5rem;

    background: white;

    border-top: 1px solid #E8E3D9;

    border-bottom: 1px solid #E8E3D9;

    text-align: center;

}

.contact-suggestion-inner {

    width: min(700px, 100%);

    margin: 0 auto;

}

.contact-suggestion-eyebrow {

    margin: 0 0 1rem;

    font-size: .7rem;

    font-weight: 600;

    letter-spacing: .2em;

    color: #8D9F84;

}

.contact-suggestion h2 {

    margin: 0;

    font-family: "Poppins", sans-serif;

    font-size: clamp(1.8rem, 4vw, 2.6rem);

    line-height: 1.2;

    color: #22334A;

}

.contact-suggestion p {

    max-width: 600px;

    margin: 1.25rem auto 0;

    font-size: .98rem;

    line-height: 1.8;

    color: #71808C;

}


/* ==========================================================
   CONTACT BUTTON
========================================================== */

.contact-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: .65rem;

    margin-top: 2rem;

    padding: .9rem 1.75rem;

    background: #22334A;

    border: 1px solid #22334A;

    border-radius: 999px;

    color: white;

    text-decoration: none;

    font-size: .9rem;

    font-weight: 600;

    box-shadow:
        0 10px 25px rgba(34, 51, 74, .12);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;

}

.contact-button:hover {

    transform: translateY(-2px);

    background: #394A5A;

    box-shadow:
        0 14px 30px rgba(34, 51, 74, .16);

}

.contact-button span {

    font-size: 1.1rem;

    line-height: 1;

}

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

.site-footer {

    width: 100%;

    margin-top: 0;

    padding: 4rem 2rem 2rem;

    background: #F4F0E8;

    border-top: 1px solid #E8E3D9;

    text-align: center;

}

.site-footer-content {

    width: min(900px, 100%);

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;

}

.site-footer-logo {

    width: 55px;

    height: auto;

    margin-bottom: .75rem;

}

.site-footer-name {

    font-family: "Poppins", sans-serif;

    font-size: 1.35rem;

    font-weight: 700;

    color: #22334A;

}

.site-footer-tagline {

    margin: .5rem 0 1.75rem;

    font-size: .95rem;

    line-height: 1.6;

    color: #6D7A86;

    font-weight: 400;

}

.site-footer-nav {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 2rem;

}

.site-footer-nav a {

    font-size: .9rem;

    font-weight: 600;

    color: #22334A;

    text-decoration: none;

    transition: color .2s ease;

}

.site-footer-nav a:hover {

    color: #92A98A;

}

.site-footer-bottom {

    width: 100%;

    margin-top: 2.5rem;

    padding-top: 1.5rem;

    border-top: 1px solid #E8E3D9;

}

.site-footer-bottom p {

    margin: 0;

    font-size: .75rem;

    letter-spacing: .03em;

    color: #8A949C;

    font-weight: 400;

}

.site-footer-signoff {

    margin-top: .5rem !important;

    font-size: .85rem !important;

    font-style: italic;

    color: #7F9276 !important;

}


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

@media (max-width: 800px) {

    .site-header {

        flex-direction: column;

        gap: 1.25rem;

        padding-top: 1.5rem;

    }

    .site-header nav {

        gap: 1.25rem;

        justify-content: center;

        flex-wrap: wrap;

    }

    .logo span {

        font-size: 1.4rem;

    }

    .contact-hero {

        padding-top: 4rem;

        padding-bottom: 3rem;

    }

    .contact-section {

        padding-bottom: 4rem;

    }

    .contact-card {

        padding: 2.75rem 2rem;

    }

    .contact-suggestion {

        padding-top: 4rem;

        padding-bottom: 4rem;

    }

}

@media (max-width: 500px) {

    .site-header {

        width: 90%;

    }

    .site-header nav {

        gap: .9rem 1.2rem;

    }

    .site-header nav a {

        font-size: .85rem;

    }

    .contact-hero h1 {

        font-size: 2.5rem;

    }

    .contact-intro {

        font-size: 1rem;

    }

    .contact-card {

        padding: 2.5rem 1.4rem;

    }

    .contact-card h2 {

        font-size: 1.7rem;

    }

    .contact-email {

        max-width: 100%;

        overflow-wrap: anywhere;

    }

    .contact-suggestion h2 {

        font-size: 1.75rem;

    }

    .site-footer {

        padding-left: 1.25rem;

        padding-right: 1.25rem;

    }

    .site-footer-nav {

        gap: 1rem 1.4rem;

    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .site-header nav a,
    .contact-email,
    .contact-button {

        transition: none;

    }

}