/*
Theme Name:     Blocksy Child
Theme URI:      https://creativethemes.com/blocksy/
Template:       blocksy
Author:         Trailblaze
Description:    Blocksy child theme for Trailblaze. Holds all custom code and styles so the parent Blocksy theme can be updated safely.
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    blocksy-child
*/

/* Custom styles are loaded from the /assets/*.css files via functions.php. */

/* =========================================================================
   Trailblaze brand: recolour Blocksy's accent palette to green (site-wide)
   ========================================================================= */
:root {
	--theme-palette-color-1: #2D6A4F; /* primary accent — Trailblaze app green */
	--theme-palette-color-2: #1B4332; /* accent hover / darker */
	--tb-green-dark: #1B4332;
}

/* Header logo sizing + vertical centering */
.ct-header .site-logo-container img,
.site-branding img.custom-logo,
[data-id="logo"] img {
	max-height: 38px;
	width: auto;
}
.ct-header .site-branding,
.ct-header .site-logo-container,
.ct-header [data-id="logo"] {
	display: flex;
	align-items: center;
	height: 100%;
}

/* Slimmer header row */
.ct-header [data-row="middle"] > .ct-container,
#header [data-row="middle"] > .ct-container {
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	min-height: 0 !important;
}
.ct-header [data-row="middle"] {
	--header-height: 56px;
}

/* Larger header menu links */
.ct-header .header-menu-1 > .menu > li > .ct-menu-link,
#header-menu-1 > .menu > li > .ct-menu-link {
	font-size: 17px;
	font-weight: 600;
}

/* Logo image is now the brand mark — hide the redundant text site-title. */
.site-branding .site-title-container,
.site-branding .site-title {
	display: none !important;
}

/* Hide the "Home" page-title band on the front page (hero speaks for itself). */
.home .hero-section {
	display: none !important;
}
/* Remove Blocksy's content top-spacing on the homepage so the hero sits
   flush beneath the header (kills the big grey gap at the top). */
.home #main.site-main,
.home .ct-container-full,
.home article.post-53,
.home .entry-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}
.home .entry-content > .wp-block-cover.tb-hero:first-child {
	margin-top: 0 !important;
}

/* Ensure primary buttons use the green accent. */
.wp-block-button__link,
.ct-button,
button.button,
.wp-element-button {
	--theme-button-background-initial-color: var(--theme-palette-color-1);
	--theme-button-background-hover-color: var(--theme-palette-color-2);
}

