/*
Theme Name: Restorative Formulations
Author: Universal Web Services, LLC
Author URI: https://www.universalwebservices.net/
Description: Restorative Formulations theme
Version: 1.0
*/
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

.site-container { max-width: 1170px; margin: 0 auto;}

.header-wrapper { position: relative; }
.header-wrapper nav ul { list-style: none; }
.header-wrapper a { text-decoration: none; }
.header-wrapper input[type=search] { margin-right: 1rem; padding: .75rem 1rem; }
.header-wrapper input[type=search]::placeholder {
    font-size: 0.75em;
}

@media (min-width: 992px) {
    .header-wrapper {
        margin-bottom: 0
    }
}

@media (max-width: 991px) {
    .header-quick-order {
        font-size: 13px !important;
        font-size: .8125 rem !important
    }
}

.header-subheader {
    background-color: #eaf1f6;
    border-bottom: 1px solid #ebebeb
}

@media (min-width: 768px) {
    .header-subheader {
        background: #f4f4f4
    }
}

.header-subheader-container {
    display: flex;
    height: 44px;
    line-height: 44px;
    padding: 0 1rem;
    align-items: center
}

.header-subheader-message {
    font-size: .75rem;
    color: #212121;
    display: flex;
    align-items: center;
    position: relative;
}

@media (min-width: 992px) {
    .header-subheader-message {
        text-align: left;
        font-size: .75rem;
    }
}

.header-subheader-message .header-tag {
    font-weight: 600
}

.header-subheader-utility {
    display: flex;
    margin-left: auto
}

.header-profile-login-link, .header-profile-register-link, .header-subheader-links > li > a {
    font-size: 13px;
    font-size: .8125 rem;
    color: #212121;
    display: block;
    min-width: 44px;
    position: relative;
    padding: 0
}

@media (min-width: 992px) {
    .header-profile-login-link, .header-profile-register-link, .header-subheader-links > li > a {
        font-size: 11px;
        font-size: .6875 rem;
        font-weight: 400;
        height: 44px;
        line-height: 44px;
        text-align: center
    }
}

@media (min-width: 1200px) {
    .header-profile-login-link, .header-profile-register-link, .header-subheader-links > li > a {
        padding: 0 10px
    }
}

.header-profile-login-link i {
    color: inherit;
    font-size: 1rem;
    font-family: FontAwesome;
    position: relative;
    top: 2px
}

@media (max-width: 1199px) {
    .header-profile-login-link i {
        font-size: 1.125rem
    }
}

.header-profile-login-link:hover, .header-profile-register-link:hover, .header-subheader-links > li > a:hover, .header-profile-login-link:focus, .header-profile-register-link:focus, .header-subheader-links > li > a:focus {
    color: #1d7cc4;
    text-decoration: none
}

.header-profile-login-link:hover i, .header-profile-login-link:focus i {
    color: inherit
}

.header-profile-login-link:active, .header-profile-register-link:active, .header-subheader-links > li > a:active {
    color: #1d7cc4;
    text-decoration: none
}

.header-profile-login-link:active i {
    color: inherit
}

.header-subheader-links { margin-left: 0; padding-left: 0; }
.header-subheader-links > li {
    display: inline-block
}

@media (min-width: 992px) {

    .header-subheader-utility .header-profile-menu-login {
        color: #212121
    }
}

.header-mainheader {
    background: #fff;
    border-bottom: 0 solid rgba(0, 0, 0, 0)
}

@media (min-width: 992px) {
    .header-mainheader {
        background: #fff;
        border-bottom: 1px solid #ebebeb
    }
}

.header-mainheader-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    min-height: 72px;
    padding-bottom: 10px
}

@media (min-width: 992px) {
    .header-mainheader-container {
        align-items: center;
        min-height: 90px;
        align-items: center;
        padding-bottom: 0
    }
}

.header-logo-wrapper {
    flex-grow: 1;
    text-align: center
}

@media (min-width: 992px) {
    .header-logo-wrapper {
        flex-grow: 0;
        text-align: left
    }
}

.header-mainheader-nav-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -290px;
    width: 290px;
    background-color: #fff;
    z-index: 1000
}

@media (min-width: 992px) {
    .header-mainheader-nav-wrapper {
        flex-grow: 2;
        background-color: rgba(0, 0, 0, 0);
        position: static;
        top: auto;
        bottom: auto;
        left: auto;
        width: auto
    }
}

@media (min-width: 992px) {
    .header-mainheader-nav {
        display: flex;
        justify-content: center;
        align-items: center
    }
}

.header-right-menu {
    display: flex;
    justify-content: flex-end;
    flex-grow: 0
}

.header-menu-profile {
    float: left;
    display: none
}

@media (min-width: 992px) {
    .header-menu-profile {
        display: block
    }
}

.header-promo-message-wrapper-secondary {
    background: #1d7cc4
}

.header-promo-message-container {
    display: flex;
    align-items: center;
    padding: 0 20px
}

.header-promo-message {
    min-height: 40px;
    font-size: .75rem;
    text-align: center;
    color: #fff;
    padding-top: 5px;
    padding-bottom: 5px
}

.header-promo-message p {
    color: #fff;
    font-size: .875rem;
    font-weight: 600
}

.header-promo-message a {
    font-size: inherit;
    color: #fff
}

.header-promo-message a:hover, .header-promo-message a:focus {
    color: #fff;
    text-decoration: underline
}

.header-promo-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1
}

.header-menu-level1 {
    -webkit-flex-grow: 1;
    -moz-flex-grow: 1;
    -ms-flex-grow: 1;
    flex-grow: 1;
    margin: 15px 0 0 30px
}

@media (min-width: 1200px) {
    .header-menu-level1 {
        margin: 15px 0 0 60px
    }
}

.header-menu-level1 > li {
    float: left;
    margin-right: 25px
}

@media (min-width: 1200px) {
    .header-menu-level1 > li {
        margin-right: 35px
    }
}

.header-menu-level1 > li:last-child {
    margin-right: 0
}

.header-menu-level1-anchor {
    display: block;
    position: relative;
    padding: 30px 0;
    color: #212121;
    background-color: rgba(0, 0, 0, 0);
    font-size: .875rem;
    text-transform: none;
    letter-spacing: 0;
    z-index: 1004
}

.header-menu-level1-anchor:hover, .header-menu-level1-anchor:focus {
    color: #212121;
    background-color: #fff
}

.header-menu-level1-anchor:active {
    color: #212121;
    background-color: #fff
}

.header-menu-level1-anchor::before {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 15px
}

.header-menu-level1-anchor::after {
    content: "";
    display: block;
    background-color: #005596;
    height: 2px;
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 9;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all .2s ease-in-out 0s;
    transition: all .2s ease-in-out 0s
}

.header-profile-login-link, .header-profile-register-link {
    color: #212121;
    padding: 0 10px
}

.header-profile-login-link:hover, .header-profile-register-link:hover {
    color: #1d7cc4
}

.header-profile-login-link {
    padding-left: 0;
    padding-right: 5px
}

.header-profile-menu-spacer {
    font-size: .8175 rem
}

.header-profile-register-link {
    padding-left: 5px
}

.header-profile-menu-login {
    color: #7f7f7f
}

.header-profile-menu-login-container {
    margin-right: 5px
}

.header-profile-menu-login li {
    display: inline-block
}

.header-profile-login-icon {
    font-size: 1.25rem;
    margin-right: 10px
}

.header-logo {
    display: block
}

@media (max-width: 480px) {
    .header-logo {
        max-width: 100%
    }
}

@media (min-width: 768px) {
    .header-logo {
        width: 100%
    }
}

.header-logo-image {
    max-height: 64px;
    display: block;
    margin: auto
}

@media (min-width: 992px) {
    .header-logo-image {
        width: auto
    }
}

@media(max-width: 500px) {
    .header-logo-image { width: 144px; height: auto;  }
    .header-wrapper input[type=search] { width: 172px; padding: .25rem; }
    .header-promo-message p { font-size: .75rem; }
    .header-mainheader-container { min-height: 60px; }
}


/* content */
article img { max-width: 100%; height: auto; }

/* posts */
.single article {
    padding: 1rem 2.5rem;
    max-width: 780px;
    margin: 2rem auto;
    color: #1a1a1a;
    line-height: 1.7;
}
.single .entry-title {
    font-size: 2.1rem;
    line-height: 1.25em;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.single .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
}
.single .entry-title a:hover {
    color: #005795;
}
.single .entry-meta {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.single .entry-meta a {
    color: #555;
    text-decoration: none;
}
.single .entry-meta a:hover {
    color: #2463eb;
}
.single article .wp-block-buttons { margin: 1.5rem 0;}
.single article .wp-block-button a { color: #fff; background-color: #3A7C50; text-decoration: none;  }
.single .entry-content h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #111;
}
.single .entry-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}
.single .entry-content ul,
.single .entry-content ol {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
}
.single .entry-content li {
    margin: 0.5rem 0;
}
.single .entry-content a {
    color: #005795;
}
.single .entry-content a:hover {
    color: #4097d5;
}
.single .entry-footer {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    color: #666;
}
.single .entry-footer a {
    color: #005795;
    text-decoration: none;
}
.single .entry-footer a:hover {
    text-decoration: underline;
}
/* --- Responsive tweaks --- */
@media (max-width: 600px) {
    .single article {
        padding: 0 1.5rem;
    }
    .single .entry-title {
        font-size: 1.7rem;
    }
    .single .entry-content h2 {
        font-size: 1.4rem;
    }
}
aside.wp-block-group { padding: 1rem; background-color: #f7f7f7; }
aside.wp-block-group p:first-child { margin-top: 0; }
aside.wp-block-group p:last-child { margin-bottom: 0; }


/* --- Blog Listing Container --- */
.home .header-promo-message-container { background: url('/src/img/banner/blog-bg.webp') no-repeat; background-size: cover; }
.home .tagline { padding: 2.5rem 2rem 3rem 2rem; font-size: 4rem; }

.archive #content.site-content {
    max-width: 800px;
    margin: 1rem auto;
    padding: 1rem;
    display: grid;
    gap: 2rem;
}
.archive #content .type-post {
    background: #fff;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
}
.archive #content .type-post:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.archive #content .entry-title { max-width: 44rem; font-size: 1.5rem; font-weight: 700; margin: 0 0 0.6rem 0; }
.archive #content .entry-title a {
    text-decoration: none;
    color: #1a1a1a;
}
.archive #content .entry-title a:hover {
    color: #005795;
}
.archive #content .entry-meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.archive #content .entry-meta a {
    color: #555;
    text-decoration: none;
}
.archive #content .entry-meta a:hover {
    color: #2463eb;
}
.archive #content .entry-summary { display: flex; gap: 2rem; }
.archive #content .entry-summary > * { flex: 1; }
.archive #content .entry-summary img { height: 100%; object-fit: cover; }
.archive #content .entry-summary p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}
.archive #content .read-more { display: inline-block; margin-top: .5rem; font-weight: bold; color: #005795; border-bottom: 1px solid #fff; text-transform: uppercase; text-decoration: none; }
.archive #content .read-more:hover { border-bottom-color: #005795; }
@media (max-width: 600px) {
    .home .tagline { padding: 1.5rem 1.5rem 2rem 1.5rem; font-size: 2rem; }
    .archive #content.site-content {
        padding: 0.5rem;
    }
    .archive #content .entry-summary { flex-direction: column-reverse; gap: 1rem; }
    .archive #content .type-post {
        padding: 2rem 1.2rem;
        box-shadow: none;
        border-bottom: 1px solid #eee;
    }
    .archive #content .entry-title {
        font-size: 1.3rem;
    }
}

.footer { margin-bottom: 4rem; }
.footer .navigation { text-align: center;}