:root {
	--atd-hf-bg: #ffffff;
	--atd-hf-text: #202124;
	--atd-hf-text-muted: #5f6368;
	--atd-hf-primary: #1A73E8;
	--atd-hf-border: #EAECEF;
	--atd-hf-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	--atd-hf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--atd-hf-max-width: 1200px;
}

/* Base resets for HF */
.atd-site-header, .atd-site-footer {
	font-family: var(--atd-hf-font);
	box-sizing: border-box;
}
.atd-site-header *, .atd-site-footer * {
	box-sizing: border-box;
}
.atd-container {
	max-width: var(--atd-hf-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* =========================================
   HEADER STYLES
   ========================================= */
.atd-site-header {
	background: var(--atd-hf-bg);
	border-bottom: 1px solid var(--atd-hf-border);
	position: relative;
	z-index: 1000;
	transition: box-shadow 0.3s ease;
}

.atd-site-header.atd-is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	box-shadow: var(--atd-hf-shadow);
	animation: atdSlideDown 0.3s ease;
}

@keyframes atdSlideDown {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

/* Smart offset for WordPress Admin Bar */
body.admin-bar .atd-site-header.atd-is-sticky {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .atd-site-header.atd-is-sticky {
		top: 46px;
	}
}

.atd-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

.atd-header-logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--atd-hf-text);
}

.atd-header-logo img {
	max-height: 55px;
	width: auto;
}

.atd-header-logo h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* Desktop Nav */
.atd-desktop-nav {
	display: block;
}

.atd-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 30px;
}

.atd-menu li {
	position: relative;
}

.atd-menu a {
	color: var(--atd-hf-text);
	text-decoration: none;
	font-weight: 500;
	font-size: 1rem;
	transition: color 0.2s ease;
	display: block;
	padding: 10px 0;
}

.atd-menu a:hover,
.atd-menu .current-menu-item > a {
	color: var(--atd-hf-primary);
}

/* Submenu */
.atd-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--atd-hf-bg);
	min-width: 200px;
	list-style: none;
	padding: 10px 0;
	margin: 0;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	border-radius: 8px;
	border: 1px solid var(--atd-hf-border);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
}

.atd-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.atd-menu .sub-menu a {
	padding: 8px 20px;
	font-size: 0.95rem;
	color: var(--atd-hf-text-muted);
}

.atd-menu .sub-menu a:hover {
	color: var(--atd-hf-primary);
	background: #f8f9fa;
}

/* Mobile Toggle */
.atd-mobile-menu-toggle {
	display: none;
	background: transparent;
	border: none;
	color: var(--atd-hf-text);
	cursor: pointer;
	padding: 5px;
}

/* Mobile Menu Wrapper */
.atd-mobile-menu-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 9999;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.3s, opacity 0.3s;
}

.atd-mobile-menu-wrapper.is-active {
	visibility: visible;
	opacity: 1;
}

.atd-mobile-menu-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	backdrop-filter: blur(3px);
}

.atd-mobile-menu-inner {
	position: absolute;
	top: 0;
	right: -300px;
	width: 300px;
	max-width: 80%;
	height: 100%;
	background: var(--atd-hf-bg);
	box-shadow: -5px 0 30px rgba(0,0,0,0.1);
	transition: right 0.3s ease;
	padding: 80px 30px 30px;
	overflow-y: auto;
}

body.admin-bar .atd-mobile-menu-inner {
	top: 32px;
	height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .atd-mobile-menu-inner {
		top: 46px;
		height: calc(100% - 46px);
	}
}

.atd-mobile-menu-wrapper.is-active .atd-mobile-menu-inner {
	right: 0;
}

.atd-mobile-menu-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: transparent;
	border: none;
	color: var(--atd-hf-text);
	cursor: pointer;
	padding: 10px;
}

.atd-mobile-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.atd-mobile-nav li {
	border-bottom: 1px solid var(--atd-hf-border);
}

.atd-mobile-nav a {
	display: block;
	padding: 15px 0;
	color: var(--atd-hf-text);
	text-decoration: none;
	font-weight: 500;
	font-size: 1.1rem;
}

.atd-mobile-nav .sub-menu {
	padding-left: 20px;
	border: none;
	display: none;
}

.atd-mobile-nav .sub-menu a {
	font-size: 1rem;
	color: var(--atd-hf-text-muted);
	padding: 10px 0;
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.atd-site-footer {
	background: var(--atd-hf-bg);
	border-top: 1px solid var(--atd-hf-border);
	padding-top: 60px;
	margin-top: 40px;
}

.atd-footer-top {
	display: grid;
	gap: 40px;
	margin-bottom: 40px;
}

/* Smart Grid Layouts */
.atd-footer-grid-1 { grid-template-columns: 1fr; text-align: center; }

/* Smart layout for 1 Menu */
.atd-footer-grid-2 { 
	display: flex; 
	justify-content: space-between; 
	align-items: flex-start; 
	gap: 60px; 
}
.atd-footer-grid-2 .atd-footer-brand-col {
	flex: 1;
	max-width: 700px;
}
.atd-footer-grid-2 .atd-footer-widget {
	flex-shrink: 0;
	min-width: 200px;
}

.atd-footer-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
.atd-footer-grid-4 { grid-template-columns: 2fr 1fr 1fr 1fr; }

.atd-footer-brand-col {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.atd-footer-logo img {
	max-height: 65px;
	width: auto;
}

.atd-footer-logo h2 {
	margin: 0;
	font-size: 1.5rem;
	color: var(--atd-hf-text);
	font-weight: 700;
}

.atd-footer-desc {
	color: var(--atd-hf-text-muted);
	line-height: 1.6;
	margin: 0;
	font-size: 0.95rem;
}

.atd-widget-title {
	font-size: 1.1rem;
	color: var(--atd-hf-text);
	margin: 0 0 20px 0;
	font-weight: 600;
}

.atd-footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.atd-footer-menu li {
	margin-bottom: 12px;
}

.atd-footer-menu a {
	color: var(--atd-hf-text-muted);
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.2s ease;
}

.atd-footer-menu a:hover {
	color: var(--atd-hf-primary);
}

.atd-footer-bottom {
	border-top: 1px solid var(--atd-hf-border);
	padding: 24px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 15px;
}

.atd-footer-copyright {
	color: var(--atd-hf-text-muted);
	font-size: 0.9rem;
}

.atd-footer-socials {
	display: flex;
	gap: 15px;
}

.atd-footer-socials a {
	color: var(--atd-hf-text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f8f9fa;
	transition: all 0.2s ease;
}

.atd-footer-socials a:hover {
	background: var(--atd-hf-primary);
	color: #fff;
	transform: translateY(-2px);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 991px) {
	.atd-desktop-nav { display: none; }
	.atd-mobile-menu-toggle { display: block; }
	
	.atd-footer-top {
		grid-template-columns: 1fr 1fr; /* Switch to 2 columns on tablet */
	}
	
	/* Reset flex layout for 1 Menu to stack vertically on tablet/mobile */
	.atd-footer-grid-2 {
		flex-direction: column;
		gap: 40px;
	}
	
	.atd-footer-grid-3 .atd-footer-brand-col,
	.atd-footer-grid-4 .atd-footer-brand-col {
		grid-column: 1 / -1; /* Brand spans full width */
	}
}

@media (max-width: 576px) {
	.atd-footer-top {
		grid-template-columns: 1fr; /* Switch to 1 column on mobile */
		text-align: center;
	}
	
	.atd-footer-brand-col {
		align-items: center;
	}
	
	.atd-footer-bottom {
		flex-direction: column;
		text-align: center;
		justify-content: center;
	}
}
