/*
Theme Name: RetreatFIT
Theme URI: https://www.retreatfit.com/
Description: Custom RetreatFIT child theme for GeneratePress. Created by hackers. Domesticated by AI. Full of squirrels. Don't fear the reaper.
Author: RetreatFIT
Version: 1.0.0
Template: generatepress
Text Domain: retreatfit
*/

/*
 * RetreatFIT Child Theme
 *
 * 01. Variables
 * 02. Global
 * 03. Header / Navigation
 * 04. Footer
 * 05. Buttons
 * 06. Cards
 * 07. Editorial Content
 * 08. Responsive
 */

/* =========================================================
   01. Variables
   ========================================================= */

:root {
    --rf-forest: #173B35;
    --rf-green: #2E665B;
    --rf-muted: #68716E;
    --rf-warm: #F5F3EE;
    --rf-border: #DDE2DF;
    --rf-white: #FFFFFF;
    --rf-text: #252A29;
    --rf-copper: #B97A45;
}


/* =========================================================
   04. Footer
   ========================================================= */

.site-info {
    padding: 0;
    background: var(--rf-forest);
}

.site-info .inside-site-info {
    display: block;
    max-width: none;
    padding: 0;
}

.site-info .copyright-bar {
    width: 100%;
}

.rf-footer {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 52px 40px 24px;
    text-align: left;
    color: rgba(255, 255, 255, 0.82);
}

.rf-footer-main {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.rf-footer-brand {
    max-width: 430px;
}

.rf-footer-name {
    margin-bottom: 12px;
    color: var(--rf-white);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.rf-footer-logo {
    margin-bottom: 14px;
}

.rf-footer-logo img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}

.rf-footer-tagline {
    margin: 0;
    max-width: 390px;
    font-size: 15px;
    line-height: 1.65;
}

.rf-footer-heading {
    margin-bottom: 15px;
    color: var(--rf-white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rf-footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rf-footer-menu li {
    margin: 0 0 9px;
    padding: 0;
}

.rf-footer-menu a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.rf-footer-menu a:hover,
.rf-footer-menu a:focus {
    color: var(--rf-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rf-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    margin-top: 46px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    line-height: 1.5;
}

.rf-footer-disclaimer {
    max-width: 620px;
    text-align: right;
    color: rgba(255, 255, 255, 0.62);
}

.rf-footer-copyright {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   03. Header / Navigation
   ========================================================= */

.main-navigation .main-nav ul li a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: #59615F88;
    text-decoration: none;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li[class*="current_page_"] > a {
    color: var(--rf-forest);
}

.main-navigation .main-nav ul li a {
    padding-left: 18px;
    padding-right: 18px;
}

/* =========================================================
   07. Editorial Content
   ========================================================= */

/* Single post header cleanup */

.single-post .entry-meta {
    display: none;
}

.single-post .entry-header {
    margin-bottom: 28px;
}

.single-post .entry-title {
    max-width: 900px;
    margin-bottom: 0;
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 400;
}

.single-post .post-image {
    margin-bottom: 34px;
}

.single-post .post-image img {
    display: block;
    width: 100%;
    border-radius: 2px;
}

/* =========================================================
   Editorial Typography
   ========================================================= */

.entry-content h1,
.single-post .entry-title,
.page .entry-title {
    color: var(--rf-green);
}

.entry-content h2 {
    color: var(--rf-muted);
    font-weight: 500;
    letter-spacing: -0.015em;
}

.entry-content h3 {
    color: rgb(104 113 110 / 78%);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--rf-text);
    font-weight: 600;
}


/* Give long-form content a little more editorial breathing room */

.entry-content h2 {
    margin-top: 1.65em;
    margin-bottom: 0.65em;
}

.entry-content h3 {
    margin-top: 1.4em;
    margin-bottom: 0.55em;
}

.entry-content h4 {
    margin-top: 1.25em;
    margin-bottom: 0.5em;
}


/* Links inside long-form editorial copy */

.entry-content a {
    color: var(--rf-green);
    text-underline-offset: 2px;
}

.entry-content a:hover,
.entry-content a:focus {
    color: var(--rf-forest);
}

/* =========================================================
   Rank Math Table of Contents
   ========================================================= */

#rank-math-toc {
    margin: 42px 0;
    padding: 32px 36px 30px;
    background: var(--rf-warm);
    border-left: 3px solid var(--rf-green);
}

#rank-math-toc > h2,
#rank-math-toc > h3,
#rank-math-toc > h4 {
    margin: 0 0 20px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--rf-text);
}

#rank-math-toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#rank-math-toc li {
    position: relative;
    margin: 8px 0;
    padding-left: 20px;
    line-height: 1.45;
}

#rank-math-toc > nav > ul > li::before,
#rank-math-toc > ul > li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    background: var(--rf-green);
}

#rank-math-toc ul ul {
    margin-top: 7px;
    margin-left: 4px;
}

#rank-math-toc ul ul li {
    padding-left: 24px;
}

#rank-math-toc ul ul li::before {
    content: "↳";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--rf-muted);
    font-size: 15px;
    line-height: 1.45;
    opacity: 0.5;
}

#rank-math-toc a {
    color: #45625d;
    text-decoration: none;
    transition: color 0.15s ease;
}

#rank-math-toc a:hover,
#rank-math-toc a:focus {
    color: var(--rf-forest);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {

    #rank-math-toc {
        padding: 26px 22px 24px;
    }

    .single-post .entry-title {
        font-size: 38px;
    }

}

/* =========================================================
   Homepage Typography Overrides
   ========================================================= */

body.home .entry-content h1,
body.home .entry-content h2,
body.home .entry-content h3,
body.home .entry-content h4,
body.home .entry-content h5,
body.home .entry-content h6 {
    margin-top: 0;
}

/* Homepage H1 = roughly current H2 scale */
body.home .entry-content h1 {
    font-size: 34px;
    line-height: 1.12;
    font-weight: 500;
    margin-bottom: 18px;
}

/* Step everything else down naturally */
body.home .entry-content h2 {
    font-size: 28px;
    line-height: 1.18;
    margin-bottom: 14px;
}

body.home .entry-content h3 {
    font-size: 22px;
    line-height: 1.22;
    margin-bottom: 10px;
}

body.home .entry-content h4 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
}

body.home .entry-content h5 {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 6px;
}

body.home .entry-content h6 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
}






























/* =========================================================
   08. Responsive
   ========================================================= */

@media (max-width: 768px) {

    .rf-footer {
        padding: 40px 24px 22px;
    }

    .rf-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 36px 28px;
    }

    .rf-footer-brand {
        grid-column: 1 / -1;
    }

    .rf-footer-bottom {
        display: block;
        margin-top: 36px;
    }

    .rf-footer-disclaimer {
        margin-top: 10px;
        text-align: left;
    }

    .main-navigation .main-nav ul li a {
        font-size: 14px;
        letter-spacing: 0.035em;
        padding-left: 20px;
        padding-right: 20px;
    }

}

@media (max-width: 480px) {

    .rf-footer-main {
        grid-template-columns: 1fr;
    }

}
