/*
Theme Name: The Classic Press Theme Child
Theme URL: https://www.classicpress.net/
Description: Example of a Child theme for the classicpress theme
Author: klein
Author URL: https://solfoodsoul.com
Template: the-classicpress-theme
Text Domain: the-classic-press-theme-child
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# CSS Variables
# Base Styles
# Header & Navigation
# Hero Section (Homepage)
# Page Templates
# Content & Typography
# Forms & Buttons
# Links
# Sidebar
# Footer
# Media Queries
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    --main-font-color: #105a3e;
    --body-background-color: #c2dabb;
    --colophon-background: #78C283;
    --legal-background: #4c9c58;
    --button-color: #fa9b03;
    --hero-cta-bg: rgba(120, 194, 131, 0.7);
	--hero-cta-color: rgba(255,255,255);
}

/*--------------------------------------------------------------
# Base Styles
--------------------------------------------------------------*/
body {
    color: var(--main-font-color);
    background-color: var(--body-background-color);
}

h1, h2, h3, h4, h5 {
    color: var(--main-font-color);
}

#page-title {
    padding: 4.2em 0 1em;
    background: transparent !important;
    border: none !important;
    margin-bottom: 2.6em;
}

#page-title h1 {
    color: var(--main-font-color) !important;
}

.simple-toc-container {border:1px solid #105a3e;}
.simple-toc-link {font-size:1rem;font-weight:600;}
.simple-toc-title {font-size:1.5rem;font-weight:600;}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
#inner-header {
    max-width: 82rem !important;
}

/* Default header styles for all pages */
#masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0.75em 0;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: rgba(120, 194, 131, 1) !important;
}

/* Homepage header overlay */
body.home #masthead {
    position: absolute !important;
    top: 2rem;
    background: transparent !important;
    z-index: 10;
}

/* Ensure content spacing for non-homepage */
body:not(.home) #content {
    padding-top: 0;
}

body.home #content {
    padding-top: 0;
}

/* Blog page specific spacing */
.blog #content {
    margin-top: -1rem !important;
}

/* Navigation styles */
#masthead a,
.home-hero-text h3 {
    color: #fff;
    font-weight: 400;
}

.logo {
    display: block;
    text-align: left;
    line-height: 0;
}

#primary-menu.menu li {
    letter-spacing: 0.1em;
    margin-left: 2px;
}

#primary-menu.menu > li > a {
    outline-offset: -2px;
}

#primary-menu.menu li a,
#primary-menu.menu li a:visited {
    color: rgba(255, 255, 255, 1.0) !important;
	font-weight: 600 !important;
    border-radius: 6px;
    border-width: 0;
}

#primary-menu.menu li.current_page_parent > a,
#primary-menu.menu li.current_page_item > a {
	background: rgba(251, 176, 59)!important;
}

#primary-menu.menu li a:hover,
#primary-menu.menu li a:active,
#primary-menu.menu li.current_page_parent > a:hover,
#primary-menu.menu li.current_page_item > a:active,
#primary-menu.menu li.current_page_parent ul li a:hover,
#primary-menu.menu li.current_page_parent ul li a:active,
#primary-menu.menu li.current_page_item ul li a:hover,
#primary-menu.menu li.current_page_item ul li a:active {
	background: rgba(229, 236, 166)!important;
	color:#fbb03b !important;
}

.nav--toggle-sub ul ul {
    padding: 0;
    display: none;
    top: 100%;
    flex-direction: column;
    margin-left: 0;
    z-index: 1;
    background: rgba(5, 127, 153, 1.0);
    border-radius: 0 0 6px 6px;
    width: 100%;
}

/* Menu toggle buttons */
#menu-toggle, #menu-toggle-close {
    background: var(--colophon-background);
}

/* Scroll to Top Button Base Styles */
.scroll-to-top-button {
    position: fixed;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #333333;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 30px;
}

.scroll-to-top-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top-button:active {
    transform: translateY(0);
}

.scroll-to-top-button.show {
    display: flex;
    animation: fadeInUp 0.3s ease-in-out;
}

.scroll-to-top-button.hide {
    animation: fadeOutDown 0.3s ease-in-out;
}

.scroll-to-top-button svg {
    width: 60%;
    height: 60%;
    fill: #ffffff;
    transition: fill 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Accessibility improvements */
.scroll-to-top-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .scroll-to-top-button {
        width: 45px !important;
        height: 45px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .scroll-to-top-button svg {
        width: 55%;
        height: 55%;
    }
}

@media (max-width: 480px) {
    .scroll-to-top-button {
        width: 40px !important;
        height: 40px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
}
/*--------------------------------------------------------------
# Hero Section (Homepage)
--------------------------------------------------------------*/
.hero-image {
    position: relative;
    width: 100%;
    height: 90vh;
    max-height: 800px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero-container {
    background: transparent !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.hero-cta {
    text-align: center;
    position: relative;
    z-index: 5;
}

.hero-cta-button {
    display: inline-block;
    padding: 20px 40px;
    background-color: var(--hero-cta-bg);
    color: var(--hero-cta-color) !important;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 20px;
    border: 2px solid var(--main-font-color)!important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-cta-button:hover,
.hero-cta-button:focus {
    background-color: var(--body-background-color);
    color: var(--main-font-color) !important;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3)!important;
    border-color: var(--main-font-color)!important;
}

/*--------------------------------------------------------------
# Page Templates
--------------------------------------------------------------*/
/* Full Width Template */
.full-width-page #primary.full-width,
#primary.full-width {
    display: block !important;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1em;
    box-sizing: border-box;
}

.full-width-page #primary.full-width #main,
#primary.full-width #main {
    width: 100%;
    max-width: none;
    padding: 0;
}

.full-width-page #sidebar {
    display: none;
}

/* Left Sidebar Template */
.left-sidebar-page .content-area {
    float: right;
    width: 70%;
}

.left-sidebar-page .sidebar {
    float: left;
    width: 25%;
    margin-right: 5%;
}

/*--------------------------------------------------------------
# Content & Typography
--------------------------------------------------------------*/
#content {
    position: relative;
    z-index: 1;
}

.author_bio_section {
    margin: 1.8em 0 0;
    padding: 1em;
    background-color: rgb(235 243 246 / 46%);
    border-radius: 8px;
}

.faq-content {
    margin-top: 0.5em;
    padding: 0.1em 1em;
    background: rgb(235 243 246 / 46%);
    border-radius: 6px;
}

.crayon-theme-classic {
    border-radius: 0 0 6px 6px;
}

/*--------------------------------------------------------------
# Forms & Buttons
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px #ec6b2e solid;
	border-radius: var(--tcpt-border-radius);
	background: #e5eca6;
	color: rgba(0, 0, 0, 0.8);
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 1.5;
	padding: 0.6em 1em 0.4em;
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
	box-shadow: 0 0 5px 4px #e5eca6;
}

#sidebar input[type="submit"]:hover, #commentform input[type="submit"]:hover, .search-form input[type="submit"]:hover {
    border-color: #e5eca6 !important;
	box-shadow: 0 0 3px 2px #e5eca6 !important;
    transition: all 0.3s ease;
}

input[type="search"] {
    width: 300px;
    max-width: 85%;
    padding: 0.3em;
    border-radius: 5px;
    position: relative;
    top: 1px;
}

p.button a,
input[type="submit"] {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border-radius: 5px;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    border-bottom: 0;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

/* WP Email Subscription Plugin styling */
#newsletter_signup .inputs #submit_newsletter {color:#ffffff !important;font-size:1rem !important;font-weight:600 !important;}
#newsletter_signup .inputs #submit_newsletter:hover {
    background: #28a745 !important;
    color: #fff !important;
}
#newsletter_signup .header .subheading {
	font-size:1rem !important;
}
#newsletter_signup .textfield {
    font-size: 1.2rem !important;
    font-weight: bold !important;
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/
a,
a:visited {
	color: #fff !important;
	font-weight: 500;
	background: transparent;
	border: 0;
	border-bottom: 0.2em solid transparent;
}
#susty-back-link {
	padding: 0.3em 0.6em;
}
a:hover,
a:focus,
a:active {
	color: #4c9c58 !important;
	text-decoration: none;
	border-bottom-style: solid;
	border-bottom-color: inherit;
}
#legal a:hover {color:#e5eca6 !important;font-weight:900 !important;text-decoration:underline !important;}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar-note {
    padding: 10px 9px 12px 15px;
    background-color: rgb(235 243 246 / 46%);
    border-radius: 8px;
    margin: 0.3em 0 1.5em 0;
}

#sidebar p.readmore a {
    display: inline-block;
    padding: 0.55rem 1.5rem 0.65em;
    border-radius: 5px;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    border-bottom: 0;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    background: var(--button-color);
}

#sidebar input[type="submit"],
#commentform input[type="submit"],
.search-form input[type="submit"] {
    padding: 0.6em 1em 0.7em;
    font-size: 0.9em;
    border-radius: 5px;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    border-bottom: 0;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    background: var(--button-color);
    border: 1px solid var(--button-color);
    position: relative;
    top: -2px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#colophon {
    background: var(--colophon-background);
}

#legal {
    background: var(--legal-background);
}

#colophon .social-menu a {
    border: 0;
    padding: 0.15rem 0;
    text-decoration: none;
    color: #fff;
    margin: 0;
}

/* Footer Widget Styles */
.footer-widgets-container {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
    margin: 0 auto;
    max-width: var(--max-width, 1200px);
}

.footer-widgets-container.columns-1 { grid-template-columns: 1fr; }
.footer-widgets-container.columns-2 { grid-template-columns: repeat(2, 1fr); }
.footer-widgets-container.columns-3 { grid-template-columns: repeat(3, 1fr); }
.footer-widgets-container.columns-4 { grid-template-columns: repeat(4, 1fr); }

.footer-widget {
    color: #fff;
    padding: 0 1em;
}

.footer-widget h3 {
    color: #fff;
    margin-bottom: 0.25rem !important;
    font-size: 1.2rem;
}

h3.widget-title{color:#105a3e !important;}

.footer-widget ul,
.footer-widget .menu,
.footer-widget .nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
}

.footer-widget ul li,
.footer-widget .menu li,
.footer-widget .nav li,
.footer-widget .social-menu li {
    display: block !important;
    margin-bottom: 0.25rem !important;
    width: 100%;
    line-height: 1.2;
    font-size: 0.8em;
}

.footer-widget a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 0.15rem 0 !important;
}

.footer-widget a:hover {
    text-decoration: underline;
}

.footer-widget .menu-social-links-menu-container ul {
    display: block !important;
}

.footer-widget .menu-social-links-menu-container li {
    display: block !important;
    margin-bottom: 0.25rem !important;
}

.footer-widget .search-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.footer-widget .search-field {
    width: 80%;
    padding: 0.3rem;
    border-radius: 4px;
    border: none;
}

.footer-widget .search-submit {
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 4px;
    background: var(--button-color);
    color: white;
    cursor: pointer;
}

.footer-widget .search-submit:hover {
    box-shadow: 0 0 3px 2px var(--button-color);
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/

/* Tablet and Mobile Responsive */
/* Fix menu button alignment - replace the menu toggle button section in your mobile media query */

@media screen and (max-width: 900px) {
    /* Menu toggle buttons - align with logo instead of absolute positioning */
    body.home #menu-toggle,
    body.home #menu-toggle-close {
        background: var(--body-background-color) !important;
        border: 2px solid var(--main-font-color);
        z-index: 20 !important;
        position: relative !important; /* Change from absolute to relative */
        top: auto !important; /* Reset top positioning */
        right: auto !important; /* Reset right positioning */
        margin: 0 !important;
        padding: 0.2em !important;
        /* Remove absolute positioning so it flows with the header layout */
    }
    
    /* Ensure the header layout works properly on mobile */
    body.home #inner-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
    }
    
    /* Make sure the logo and menu button are properly aligned */
    body.home .logo {
        flex: 1; /* Take up available space */
        display: flex;
        align-items: center;
    }
    
    /* Position the menu toggle in the header flow */
    body.home #site-navigation {
        display: flex;
        align-items: center;
    }
    
    /* Hide the actual navigation menu but keep the toggle button */
    body.home #primary-menu {
        display: none; /* Hidden by default */
        background: var(--body-background-color) !important;
        z-index: 15 !important;
        padding: 1rem 0;
        margin: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    /* Show menu when toggle is activated */
    body.home #primary-menu.show,
    body.home #primary-menu:target {
        display: block !important;
    }
    
    /* Rest of the mobile menu styles remain the same */
    body.home .menu-mainmenu-container {
        background: var(--body-background-color) !important;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 15 !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
    }
    
    body.home #primary-menu li {
        margin: 0.2em 0;
    }
    
    body.home #primary-menu li a {
        color: var(--main-font-color) !important;
        font-weight: 600;
        padding: 0.5rem 1rem;
        display: block;
        margin: 0;
    }
    
    body.home #primary-menu li a:hover,
    body.home #primary-menu li a:focus {
        background: rgba(16, 90, 62, 0.1) !important;
        color: var(--main-font-color) !important;
    }
    
    /* Hero section and CTA positioning remain the same */
    body.home .hero-image {
        height: 100vh !important;
    }
    
    body.home .hero-overlay {
        z-index: 5;
        align-items: flex-end !important;
        justify-content: center;
        padding-bottom: 3rem;
    }
    
    body.home .hero-cta {
        margin: 0;
        padding: 0;
        position: relative;
        bottom: 0;
        transform: translateY(-50px);
        transition: all 0.3s ease;
    }
    
    body.home.menu-open .hero-cta {
        opacity: 0 !important;
        pointer-events: none;
    }
    
    /* Search bar padding */
    body.home .hero-overlay .search-form {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    body.home .hero-overlay input[type="search"] {
        width: calc(100% - 140px) !important;
        max-width: 300px;
        margin: 0;
    }

/* Mobile Footer Widget Fixes - applies to ALL pages, not just homepage */
.footer-widgets-container {
    display: block !important; /* Override the grid layout */
    grid-template-columns: none !important; /* Remove grid columns */
}

.footer-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1em;
    margin-bottom: 1.5em; /* Add space between widgets */
    width: 100%;
    box-sizing: border-box;
}

/* Center widget content */
.footer-widget h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-widget ul,
.footer-widget .menu,
.footer-widget .nav,
.footer-widget .menu-social-links-menu-container ul {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.footer-widget ul li,
.footer-widget .menu li,
.footer-widget .nav li {
    text-align: center;
    width: auto;
    margin: 0.25rem 0;
}

/* Center the newsletter form */
.footer-widget .Nknewsletter-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
}

.footer-widget .Nknewsletter_email {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-widget .Nknewsletter_space_submit {
    width: auto;
    padding: 0.75rem 1.5rem;
}

/* Center the location image */
.footer-widget .widget_media_image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-widget .widget_media_image img {
    max-width: 250px;
    height: auto;
}
}