/* ==========================================================================
   Custom Somatic Healing UI Design System Base Rules
   ========================================================================== */

:root {
	--somatic-sage: #5F6F62;
	--somatic-moss: #3F4A41;
	--somatic-sand: #F4F0E8;
	--somatic-cream: #FAF8F5;
	--somatic-terracotta: #C98A64;
	--somatic-charcoal: #222824;
	--somatic-white: #FFFFFF;
	--font-premium: 'Cinzel', serif;
	--font-sans: 'DM Sans', sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--somatic-cream);
	color: var(--somatic-charcoal);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
}

/* Typography Layout Rules */
.heading-premium {
	font-family: var(--font-premium);
	letter-spacing: 0.05em;
	font-weight: 400;
}

.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }

@media (min-width: 768px) {
	.text-4xl { font-size: 56px; }
}

/* Global Container Constraints */
.container-max {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

/* Floating Action Trigger Bridge */
.fixed-action-trigger {
	position: fixed;
	bottom: 32px;
	right: 24px;
	z-index: 50;
}

.btn-floating-chat {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(135deg, var(--somatic-sage), var(--somatic-moss));
	color: var(--somatic-white);
	padding: 16px 24px;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	box-shadow: 0 10px 25px rgba(63, 74, 65, 0.2);
	transition: all 0.3s ease;
	font-weight: 500;
}

.btn-floating-chat:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 30px rgba(63, 74, 65, 0.35);
}

.pulse-indicator {
	width: 8px;
	height: 8px;
	background-color: #34d399;
	border-radius: 50%;
	display: inline-block;
	animation: purePulse 2s infinite;
}

@keyframes purePulse {
	0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
	70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
	100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Utility Header Ribbon */
.utility-header {
	background-color: var(--somatic-sand);
	border-bottom: 1px solid rgba(95, 111, 98, 0.1);
	font-size: 12px;
	color: var(--somatic-moss);
}

.utility-header .container-max {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding-top: 12px;
	padding-bottom: 12px;
}

@media (min-width: 768px) {
	.utility-header .container-max { 
		flex-direction: row; 
	}
}

.advisory-badge {
	display: inline-block;
	background-color: rgba(180, 83, 9, 0.1);
	color: #78350f;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 10px;
	margin-left: 8px;
}

.utility-right-menu {
	display: flex;
	align-items: center;
	gap: 24px;
}

.social-strip {
	display: flex;
	gap: 16px;
	opacity: 0.7;
}

.social-strip a:hover { color: #000; }

.btn-pill-sm {
	background-color: var(--somatic-sage);
	color: var(--somatic-white);
	padding: 6px 16px;
	border-radius: 9999px;
	font-weight: 500;
	transition: background 0.2s ease;
}

.btn-pill-sm:hover { background-color: var(--somatic-moss); }

/* Sticky Main Navigation Component */
.main-nav-sticky {
	position: sticky;
	top: 0;
	width: 100%;
	background-color: rgba(250, 248, 245, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(95, 111, 98, 0.05);
	z-index: 40;
}

.main-nav-sticky .container-max {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 16px;
	padding-bottom: 16px;
}

.brand-logo-img {
	height: 48px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.navigation-links-grid {
	display: none;
	align-items: center;
	gap: 32px;
	font-size: 14px;
	font-weight: 500;
	color: var(--somatic-moss);
}

@media (min-width: 768px) {
	.navigation-links-grid { 
		display: flex; 
	}
}

.nav-link-item:hover, .nav-dropdown-trigger:hover {
	color: var(--somatic-sage);
}

.nav-link-item.active {
	color: var(--somatic-sage);
	border-bottom: 2px solid var(--somatic-sage);
	padding-bottom: 2px;
}

/* Custom Nav Submenu Configurations */
.nav-dropdown-context {
	position: relative;
}

.nav-dropdown-trigger {
	background: none;
	border: none;
	font-size: 14px;
	font-weight: 500;
	color: var(--somatic-moss);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 0;
}

.dropdown-arrow-icon {
	font-size: 10px;
	transition: transform 0.2s ease;
}

.dropdown-arrow-icon.rotate-180 {
	transform: rotate(180deg);
}

.menu-dropdown-container {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 4px;
	width: 192px;
	background-color: var(--somatic-white);
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 8px;
	padding: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	display: none;
}

.menu-dropdown-container.show-menu {
	display: block;
}

.menu-dropdown-container a {
	display: block;
	padding: 8px 16px;
	border-radius: 4px;
	font-size: 12px;
	color: var(--somatic-moss);
	transition: background-color 0.2s ease;
}

.menu-dropdown-container a:hover {
	background-color: var(--somatic-sand);
}

/* Background Crossfade Animation Slider Module */
.hero-slider-container {
	position: relative;
	width: 100%;
	min-height: 75vh;      /* Maintains an elegant baseline size on big displays */
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--somatic-sand);
	overflow: hidden;
}

.slider-layers-wrapper {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-slide {
	position: absolute;
	top:30px;
	inset: 0;
	/* Cover forces the banner graphics to fill the screen beautifully without empty gaps */
	background-size: cover;
	background-repeat: no-repeat;
	/* Center focuses the image scale line right on the subject of your artwork */
	background-position: center center; 
	mix-blend-mode: luminosity;
	opacity: 0;
	/* Controlled hardware-accelerated transform stops background layout jiggle */
	transform: scale(1.02); 
	transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.hero-slide.slide-active {
	opacity: 0.75;
	transform: scale(1); /* Gives a soft cinematic zoom-out movement when sliding */
}

.premium-content-overlay {
	position: relative;
	
	margin: 0 auto;
	text-align: center;
	padding: 0px 24px;
	z-index: 10;
}

.premium-content-overlay span {
	color: var(--somatic-terracotta);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.15em;
	display: block;
	margin-bottom: 16px;
	text-transform: uppercase;
}

.premium-content-overlay h1 {
	color: var(--somatic-charcoal);
	line-height: 1.15;
	margin-bottom: 14px;
}

.premium-content-overlay p {
	color: var(--somatic-moss);
	opacity: 0.8;
	
	margin: 0 auto 32px auto;
	line-height: 1.625;
}

.btn-group-center {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.btn-premium-solid {
	background-color: var(--somatic-sage);
	color: var(--somatic-white);
	padding: 14px 32px;
	border-radius: 9999px;
	font-weight: 500;
	font-size: 14px;
	box-shadow: 0 4px 12px rgba(95, 111, 98, 0.15);
	transition: all 0.2s ease;
}

.btn-premium-solid:hover {
	background-color: var(--somatic-moss);
}

.btn-premium-outline {
	border: 1px solid var(--somatic-sage);
	color: var(--somatic-moss);
	padding: 14px 32px;
	border-radius: 9999px;
	font-weight: 500;
	font-size: 14px;
	transition: background-color 0.2s ease;
}

.btn-premium-outline:hover {
	background-color: rgba(255, 255, 255, 0.5);
}

/* Modality Blocks Grids */
.section-padding-lg {
	padding: 80px 0;
}
.section-padding-lg40 {
	padding: 40px 0;
}
.text-center-heading-group {
	text-align: center;
	max-width: 576px;
	margin: 0 auto 64px auto;
}

.text-center-heading-group h2 {
	margin-bottom: 16px;
}

.decorative-accent-line {
	width: 48px;
	height: 1px;
	background-color: var(--somatic-terracotta);
	margin: 0 auto 16px auto;
}

.text-muted-summary {
	font-size: 14px;
	color: var(--somatic-moss);
	opacity: 0.7;
}

.somatic-three-column-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

@media (min-width: 768px) {
	.somatic-three-column-grid { 
		grid-template-columns: repeat(3, 1fr); 
	}
}

.pillar-card-box {
	background-color: var(--somatic-white);
	padding: 32px;
	border-radius: 24px;
	border: 1px solid rgba(95, 111, 98, 0.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
	transition: all 0.3s ease;
}

.pillar-card-box:hover {
	transform: translateY(-4px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.pillar-icon-container {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background-color: var(--somatic-sand);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	transition: transform 0.3s ease;
}

.pillar-card-box:hover .pillar-icon-container {
	transform: scale(1.1);
}

.pillar-icon-container img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.pillar-card-box p {
	font-size: 12px;
	color: var(--somatic-moss);
	opacity: 0.8;
	line-height: 1.625;
}

/* Marketplace Section Custom Rules */
.bg-light-wrapper {
	width: 100%;
	background-color: rgba(244, 240, 232, 0.6);
	border-top: 1px solid rgba(95, 111, 98, 0.05);
	border-bottom: 1px solid rgba(95, 111, 98, 0.05);
}

.filter-nav-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 40px;
	font-size: 14px;
	font-weight: 500;
}

.filter-btn-item {
	background-color: var(--somatic-white);
	color: var(--somatic-moss);
	padding: 8px 20px;
	border-radius: 9999px;
	border: 1px solid #e5e7eb;
	cursor: pointer;
	transition: all 0.2s ease;
}

.filter-btn-item:hover {
	background-color: rgba(95, 111, 98, 0.05);
}

.filter-btn-item.active-filter {
	background-color: var(--somatic-sage);
	color: var(--somatic-white);
	border-color: var(--somatic-sage);
}

.catalog-four-column-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 640px) { 
	.catalog-four-column-grid { 
		grid-template-columns: repeat(2, 1fr); 
	} 
}
@media (min-width: 1024px) { 
	.catalog-four-column-grid { 
		grid-template-columns: repeat(4, 1fr); 
	} 
}

.product-card-node {
	background-color: var(--somatic-white);
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #f3f4f6;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-node:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(95, 111, 98, 0.06);
}

.product-image-frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4/3;
	background-color: #f3f4f6;
}

.product-image-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.product-card-node:hover .product-image-frame img {
	transform: scale(1.05);
}

.product-inner-content {
	padding: 20px;
}

.product-card-title {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
	color: var(--somatic-charcoal);
	margin-bottom: 4px;
}

.product-card-title a:hover {
	text-decoration: underline;
}

.product-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
	font-size: 12px;
}

.stars-container {
	display: flex;
	color: #f59e0b;
	gap: 2px;
}

.price-indicator-tag {
	font-weight: 700;
	color: var(--somatic-sage);
}

/* Educational Tracks Module Rules */
.two-column-equal-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

@media (min-width: 768px) {
	.two-column-equal-grid { 
		grid-template-columns: repeat(2, 1fr); 
	}
}

.education-track-card {
	background-color: var(--somatic-white);
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid rgba(95, 111, 98, 0.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
	transition: box-shadow 0.3s ease;
}

.education-track-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.track-image-link {
	display: block;
	aspect-ratio: 16/9;
	background-color: #f3f4f6;
	overflow: hidden;
}

.track-image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.track-body-padding {
	padding: 24px;
}

.track-body-padding h3 a:hover {
	text-decoration: underline;
}

.track-footer-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	border-top: 1px solid #f3f4f6;
	padding-top: 16px;
	margin-top: 16px;
	color: rgba(63, 74, 65, 0.75);
}

/* Somatic Narratives Blocks Rows */
.narratives-stack {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.narrative-row-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
}

@media (min-width: 768px) {
	.narrative-row-grid { 
		grid-template-columns: repeat(2, 1fr); 
	}
}

.narrative-media-asset {
	border-radius: 24px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
	max-height: 350px;
	width: 100%;
	object-fit: cover;
}

@media (min-width: 768px) {
	.narrative-row-grid .order-swap-image { grid-column: 2; }
	.narrative-row-grid .order-swap-text { grid-column: 1; }
}

.link-underline-holistic {
	display: inline-block;
	border-bottom: 1px solid var(--somatic-sage);
	color: var(--somatic-sage);
	padding-bottom: 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Awards Validation Profile Section */
.bg-sand-awards-strip {
	width: 100%;
	background-color: var(--somatic-sand);
	padding: 64px 0;
}

.awards-layout-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: center;
}

@media (min-width: 768px) {
	.awards-layout-grid { 
		grid-template-columns: repeat(12, 1fr); 
	}
}

.awards-left-asset-frame {
	grid-column: span 12;
}

@media (min-width: 768px) {
	.awards-left-asset-frame { 
		grid-column: span 4; 
	}
}

.awards-left-asset-frame img {
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	width: 100%;
	display: block;
}

.awards-right-narrative-frame {
	grid-column: span 12;
}

@media (min-width: 768px) {
	.awards-right-narrative-frame { 
		grid-column: span 8; 
	}
}

.audit-meta-tag {
	font-size: 10px;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--somatic-terracotta);
	letter-spacing: 0.15em;
	display: block;
	margin-bottom: 4px;
}

.awards-right-narrative-frame h3 {
	margin-bottom: 16px;
}

.awards-right-narrative-frame p {
	font-size: 12px;
	color: var(--somatic-moss);
	opacity: 0.8;
	line-height: 1.625;
	margin-bottom: 16px;
}

/* Sanctuary Architecture Footer Rules */
.sanctuary-global-footer {
	background-color: var(--somatic-charcoal);
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	padding-top: 64px;
}

.footer-primary-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
	.footer-primary-layout { 
		grid-template-columns: repeat(3, 1fr); 
	}
}

.footer-brand-logo {
	height: 40px;
	object-fit: contain;
	filter: brightness(0.95);
	margin-bottom: 16px;
}

.footer-primary-layout p {
	line-height: 1.625;
}

.footer-column-heading {
	color: var(--somatic-white);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin-bottom: 16px;
	text-transform: uppercase;
}

.footer-links-stack {
	list-style: none;
}

.footer-links-stack li {
	margin-bottom: 8px;
}

.footer-links-stack a {
	transition: color 0.2s ease;
}

.footer-links-stack a:hover {
	color: var(--somatic-white);
}

.footer-right-alignment {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

@media (min-width: 768px) {
	.footer-right-alignment {
		align-items: flex-end;
		text-align: right;
	}
}

.app-badges-column {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.app-badges-column img {
	height: 40px;
}

.footer-bottom-copyright-bar {
	padding: 24px 0;
	background-color: #1b201d;
	font-size: 11px;
}

.footer-bottom-copyright-bar .container-max {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

@media (min-width: 768px) {
	.footer-bottom-copyright-bar .container-max { 
		flex-direction: row; 
	}
}

.legal-links-strip {
	margin-top: 4px;
}

.legal-links-strip a {
	margin: 0 8px;
}

.legal-links-strip a:hover {
	text-decoration: underline;
}

.trust-badges-row {
	display: flex;
	gap: 16px;
	opacity: 0.5;
}

.trust-badges-row img {
	height: 40px;
	object-fit: contain;
	filter: grayscale(1) invert(1);
}
/* ==========================================================================
   Mobile Responsive Navigation Hamburger Elements
   ========================================================================== */

.nav-layout-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.mobile-menu-hamburger-btn {
	display: block;
	background: none;
	border: none;
	color: var(--somatic-moss);
	font-size: 24px;
	cursor: pointer;
	padding: 8px;
	transition: color 0.2s ease;
}

@media (min-width: 768px) {
	.mobile-menu-hamburger-btn {
		display: none !important; /* Hide hamburger toggle entirely on desktop displays */
	}
}

/* Fallback adaptive styling overriding the mobile layout rules */
@media (max-width: 767px) {
    .hero-slider-container {
		min-height: 50vh; /* Adjusts the height elegantly on small mobile screens */
	}
	.hero-slide {
		/* Keeps the center vertical axis locked on mobile screens so faces/subjects don't cut off */
		background-position: center center; 
	}
	.navigation-links-grid {
		display: none; /* Hide link frame natively on mobile */
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: var(--somatic-white);
		border-top: 1px solid rgba(0, 0, 0, 0.05);
		box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
		padding: 24px;
		flex-direction: column;
		align-items: flex-start !important;
		gap: 16px !important;
	}
	
	.navigation-links-grid.mobile-expanded {
		display: flex !important; /* Injected dynamic class rule via javascript */
	}
	
	.nav-dropdown-context, .menu-dropdown-container {
		width: 100%;
	}
	
	.menu-dropdown-container {
		position: relative !important;
		top: 0 !important;
		box-shadow: none !important;
		width: 100% !important;
		background-color: var(--somatic-sand) !important;
		margin-top: 8px;
	}
}

