/*
Theme Name: The Basal Step Native
Theme URI: https://thebasalstep.com
Author: The Basal Step Agency
Author URI: https://thebasalstep.com
Description: Native Gutenberg theme for The Basal Step prioritizing zero-bloat architecture and High-Contrast digital aesthetics.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: basal-step-native
*/

/*--------------------------------------------------------------
# CSS Custom Properties (High-Contrast Palette)
--------------------------------------------------------------*/
:root {
	--basal-digital-orange: #FF512F;
	--basal-hot-magenta: #DD2476;
	--basal-tech-charcoal: #121212;
	--basal-slate-gray: #64748B;
	--basal-clean-cloud: #F4F5F7;
	--basal-white: #FFFFFF;
	--basal-font-primary: 'Montserrat', sans-serif;
	--basal-font-secondary: 'Inter', sans-serif;
}

/*--------------------------------------------------------------
# Block Matrix & Governance Classes
--------------------------------------------------------------*/

/* The 'Sage' Hover Glow (Micro-interaction) */
.basal-hover-glow {
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.basal-hover-glow:hover {
	box-shadow: 0 8px 16px rgba(221, 36, 118, 0.25); /* Hot Magenta Glow */
	transform: translateY(-2px);
}

/* The 'Bento' Service Grid Tile */
.basal-bento-tile {
	background-color: var(--basal-white);
	border-radius: 12px;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	border: 1px solid rgba(100, 116, 139, 0.1);
}
.basal-bento-tile:hover {
	box-shadow: 0 10px 24px rgba(221, 36, 118, 0.15); /* Subtle Hot Magenta */
	transform: translateY(-4px);
}

/* Universal Architectural Button & Global Gutenberg Button */
html body .wp-block-button .wp-block-button__link {
	background-color: #FF512F !important;
	color: #F4F5F7 !important;
	border-radius: 4px !important;
	font-family: var(--basal-font-secondary) !important;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.5px;
	border: none !important;
	transition: all 0.3s ease !important;
}
html body .wp-block-button .wp-block-button__link:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 10px 24px rgba(255, 81, 47, 0.4) !important; /* Digital Orange Glow */
}

/* Sage Reading Zone (Content Constriction) */
.sage-reading-zone {
	max-width: 800px;
	margin: 0 auto;
	font-family: var(--basal-font-secondary);
	line-height: 1.6;
	color: var(--basal-tech-charcoal);
}

/* Dedicated form wrapper styling (Hooks for Forminator) */
.basal-audit-form form {
	font-family: var(--basal-font-secondary);
}

/*--------------------------------------------------------------
# Core Structural Layout Classes (Code Red Patch)
--------------------------------------------------------------*/

.padding-global {
	padding-left: 5%;
	padding-right: 5%;
}

.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	background-color: var(--basal-tech-charcoal);
	color: var(--basal-clean-cloud);
}
.site-title a {
	color: var(--basal-clean-cloud);
	text-decoration: none;
	font-family: var(--basal-font-primary);
	font-weight: 700;
	font-size: 1.5rem;
}
/* True Floating Glass Header (Two-Island) */
.site-header {
	position: absolute;
	top: 24px;
	left: 50%;
	transform: translateX(-50%);
	width: 95%;
	max-width: 1400px;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 9999;
}
.site-header .site-branding,
.site-header .main-navigation {
	display: flex;
	align-items: center;
	min-height: 64px;
	background: rgba(30, 30, 30, 0.55) !important;
	backdrop-filter: saturate(180%) blur(24px) !important;
	-webkit-backdrop-filter: saturate(180%) blur(24px) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 50px !important;
	box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.3) !important;
	padding: 10px 24px !important;
}
.site-header .site-branding img,
.custom-logo-link img {
	max-height: 44px;
	width: auto;
	object-fit: contain;
}
.site-header .site-branding a {
	color: var(--basal-clean-cloud);
	text-decoration: none;
	font-weight: 700;
	font-family: var(--basal-font-secondary);
	font-size: 1.25rem;
}

.main-navigation ul, 
.main-navigation div > ul {
	display: flex;
	list-style: none !important;
	margin: 0;
	padding: 0;
	gap: 2rem;
	align-items: center;
}
.main-navigation a {
	color: var(--basal-clean-cloud) !important;
	text-decoration: none;
	font-family: var(--basal-font-secondary);
	font-weight: 500;
	transition: color 0.3s ease;
}
.main-navigation a:hover {
	color: var(--basal-digital-orange) !important;
}

/* Dropdown Menu CSS Patch */
.main-navigation li {
	position: relative;
}
.main-navigation .menu-item-has-children::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 20px; /* Invisible Hover Bridge */
	background: transparent;
	z-index: 998;
}
.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 10px;
	background: rgba(18, 18, 18, 0.6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 1rem;
	min-width: 200px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	z-index: 999;
}
.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.basal-hero-wrapper {
	padding: 6rem 5%;
	background-color: var(--basal-tech-charcoal);
	color: var(--basal-clean-cloud);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.basal-bento-tile {
	padding: 2.5rem;
	background-color: var(--basal-white);
	border-radius: 12px;
	border: 1px solid rgba(100, 116, 139, 0.1);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.basal-site-footer {
	background-color: var(--basal-tech-charcoal);
	color: var(--basal-slate-gray);
	padding-top: 4rem;
	padding-bottom: 4rem;
	text-align: center;
	font-family: var(--basal-font-secondary);
}
.basal-site-footer a {
	color: var(--basal-clean-cloud);
}

/*--------------------------------------------------------------
# True Full-Bleed Canvas Physics
--------------------------------------------------------------*/
#page, 
.site-main, 
.entry-content, 
main {
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
	overflow-x: hidden;
}

/* Gutenberg Alignment Overrides */
.alignfull { 
	margin-left: calc(50% - 50vw) !important; 
	margin-right: calc(50% - 50vw) !important; 
	max-width: 100vw !important; 
	width: 100vw !important; 
}
.alignwide {
	margin-left: calc(25% - 25vw) !important;
	margin-right: calc(25% - 25vw) !important;
	max-width: 100vw !important;
	width: auto !important;
}

