/*
Theme Name: CommuniDev Child
Theme URI: https://communidev.local
Description: A child theme for CommuniDev built on the Astra theme
Author: CommuniDev Team
Author URI: https://communidev.local
Template: astra
Version: 1.1.0
Text Domain: communidev-child
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ===== BASE ===== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ===== CUSTOM HEADER STYLES ===== */
.site-header {
	background: #0f0f0f;
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-wrapper {
	background: #0f0f0f;
}

.site-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	max-width: 1200px;
	margin: 0 auto;
}

.site-branding {
	margin: 0;
}

.site-branding .site-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.site-branding a {
	color: white !important;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.site-branding a:hover {
	opacity: 0.8;
}

.main-navigation {
	display: flex;
	align-items: center;
}

.primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 8px;
	align-items: center;
}

.primary-menu a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	transition: all 0.2s ease;
	display: block;
	padding: 8px 16px;
	border-radius: 8px;
}

.primary-menu a:hover {
	color: white;
	background: rgba(255, 255, 255, 0.08);
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
	display: none;
	background: transparent;
	border: none;
	color: white;
	cursor: pointer;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
	width: 32px;
	height: 32px;
	justify-content: center;
	align-items: center;
	border-radius: 8px;
	transition: background 0.2s ease;
}

.menu-toggle:hover {
	background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: white;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== FOOTER ===== */
.footer-content {
	background: #0f0f0f;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-column h3,
.footer-column h4 {
	color: white;
	font-weight: 700;
	margin-bottom: 16px;
	font-size: 15px;
}

.footer-column h3 {
	font-size: 18px;
}

.footer-column p {
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
}

.footer-column ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-column li {
	margin-bottom: 8px;
}

.footer-column a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 0.2s ease;
	font-size: 14px;
}

.footer-column a:hover {
	color: white;
}

.footer-bottom {
	text-align: center;
	color: rgba(255, 255, 255, 0.3);
	font-size: 13px;
	padding: 20px 0 0;
}

.footer-bottom p {
	margin: 0;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
	.site-header-inner {
		padding: 12px 0;
	}

	.site-branding .site-title {
		font-size: 20px;
	}

	.menu-toggle {
		display: flex;
	}

	.primary-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: #0f0f0f;
		padding: 0;
		margin-top: 0;
		box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		width: 100%;
		z-index: 999;
		border-top: 1px solid rgba(255, 255, 255, 0.06);
	}

	.primary-menu.active {
		max-height: 600px;
	}

	.primary-menu li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	}

	.primary-menu a {
		padding: 16px 24px;
		font-size: 15px;
		display: block;
		border-radius: 0;
	}

	.primary-menu a:hover {
		background: rgba(255, 255, 255, 0.04);
	}
}

/* ===== SITE CONTENT ===== */
#content {
	background: white;
}

/* ===== OVERRIDE ASTRA MULTI-COLUMN LAYOUT ===== */
.entry-content,
.post-content,
.page-content,
.posts-content,
.content,
.ast-container,
.site-content,
.ast-main-header-wrap,
main {
	columns: auto !important;
	column-count: 1 !important;
	column-width: auto !important;
	column-fill: auto !important;
	column-gap: 0 !important;
	column-rule: none !important;
}

.entry-content > *,
.post-content > *,
.page-content > *,
.content > *,
.ast-container > * {
	column-span: auto !important;
	break-inside: auto !important;
	break-before: auto !important;
	break-after: auto !important;
}

.ast-container,
.content,
.site-content {
	display: block !important;
	width: 100% !important;
}

section {
	columns: auto !important;
	column-count: 1 !important;
	width: 100% !important;
}
