/**
 * Header Styles — Click Media Lab
 *
 * Sections:
 *  1. Reset / Base
 *  2. Top Bar
 *  3. Main Header
 *  4. Logo
 *  5. Primary Navigation
 *  6. Dropdown Sub-menu
 *  7. Header Right (Meta Badge + CTA Button)
 *  8. Mobile Toggle
 *  9. Responsive — Tablet (max 991px)
 * 10. Responsive — Mobile (max 767px)
 *
 * @package clickmedialab
 */


/* =============================================================================
   1. Reset / Base
   ============================================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}


/* =============================================================================
   2. Top Bar
   ============================================================================= */
.cml-topbar {
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
	padding: 6px 0;
	font-size: 13px;
	color: #444;
}

.cml-topbar a {
	color: #444;
	text-decoration: none;
	transition: color 0.2s;
}

.cml-topbar a:hover {
	color: #e8620e;
}

/* Address */
.cml-topbar-address svg {
	flex-shrink: 0;
	color: #e8620e;
}

/* Phone + Email */
.cml-topbar-contact .cml-contact-item {
	color: #444;
	text-decoration: none;
	transition: color 0.2s;
}

.cml-topbar-contact .cml-contact-item:hover {
	color: #e8620e;
}

.cml-topbar-contact .cml-contact-item svg {
	flex-shrink: 0;
	color: #e8620e;
}


/* =============================================================================
   3. Main Header
   ============================================================================= */
.cml-main-header {
	background: #fff;
	border-bottom: 3px solid #0a2d8f;
	padding: 10px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: visible;
}


/* =============================================================================
   4. Logo
   ============================================================================= */
.cml-logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
	gap: 8px;
}

.cml-logo img {
	height: 52px;
	width: auto;
}

/* Text fallback logo (used when no custom logo is uploaded) */
.cml-logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.cml-logo-text .logo-name {
	font-size: 22px;
	font-weight: 800;
	color: #0a2d8f;
	letter-spacing: -0.3px;
}

.cml-logo-text .logo-sub {
	font-size: 11px;
	font-weight: 500;
	color: #555;
	letter-spacing: 1px;
	text-transform: uppercase;
}


/* =============================================================================
   5. Primary Navigation
   ============================================================================= */
.cml-primary-nav {
	/* flex centering handled by Bootstrap col d-flex justify-content-center */
}

/* WordPress outputs <ul id="primary-menu"> */
#primary-menu,
#primary-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#primary-menu {
	display: flex;
	align-items: center;
	gap: 4px;
}

#primary-menu > li {
	position: relative;
}

#primary-menu > li > a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	font-size: 15px;
	font-weight: 500;
	color: #1a1a2e;
	text-decoration: none;
	border-radius: 4px;
	white-space: nowrap;
	transition: color 0.2s, background 0.2s;
}

/* Active / hover state */
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a {
	color: #e8620e;
	background: #fff5f0;
}

/* Caret arrow for parent items */
#primary-menu > li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	margin-left: 2px;
	transition: transform 0.2s;
}

#primary-menu > li.menu-item-has-children:hover > a::after {
	transform: rotate(180deg);
}


/* =============================================================================
   6. Dropdown Sub-menu
   ============================================================================= */
#primary-menu > li > ul.sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-top: 3px solid #0a2d8f;
	border-radius: 0 0 6px 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	z-index: 999;
}

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

#primary-menu > li > ul.sub-menu li a {
	display: block;
	padding: 9px 16px;
	font-size: 14px;
	color: #333;
	text-decoration: none;
	transition: color 0.2s, background 0.2s;
}

#primary-menu > li > ul.sub-menu li a:hover {
	color: #e8620e;
	background: #fff5f0;
}


/* =============================================================================
   7. Header Right — Meta Business Partner Badge + CTA Button
   ============================================================================= */
/* layout handled by Bootstrap d-flex gap-3 on .cml-header-right */

/* Meta Business Partner Badge */
.cml-meta-badge {
	display: flex;
	align-items: center;
	gap: 7px;
	border: 1.5px solid #1877f2;
	border-radius: 50px;
	padding: 5px 14px 5px 8px;
	text-decoration: none;
	transition: box-shadow 0.2s;
}

.cml-meta-badge:hover {
	box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}

.cml-meta-badge svg {
	width: 24px;
	height: 24px;
}

.cml-meta-badge-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.cml-meta-badge-text .meta-logo-word {
	font-size: 13px;
	font-weight: 700;
	color: #1877f2;
	letter-spacing: -0.2px;
}

.cml-meta-badge-text .meta-badge-sub {
	font-size: 10px;
	color: #555;
	letter-spacing: 0.3px;
}

/* CTA Button */
.cml-cta-btn {
	display: inline-flex;
	align-items: center;
	background: #e8620e;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 50px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s, transform 0.15s;
}

.cml-cta-btn:hover {
	background: #c9500a;
	transform: translateY(-1px);
	color: #fff !important;
}


/* =============================================================================
   8. Mobile Toggle (Hamburger)
   ============================================================================= */
.cml-mobile-toggle {
	background: none;
	border: 1.5px solid #0a2d8f;
	border-radius: 4px;
	padding: 6px 10px;
	cursor: pointer;
	color: #0a2d8f;
}

.cml-mobile-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #0a2d8f;
	border-radius: 2px;
	transition: all 0.3s;
}

/* =============================================================================
   9. Mobile Menu Panel
   ============================================================================= */
.cml-mobile-menu {
	display: none;
	background: #fff;
	border-top: 3px solid #0a2d8f;
	padding: 10px 0;
}

.cml-mobile-menu.cml-menu-open {
	display: block;
}

.cml-mobile-menu #mobile-menu,
.cml-mobile-menu #mobile-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cml-mobile-menu #mobile-menu li a {
	display: block;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 500;
	color: #1a1a2e;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f0;
	transition: color 0.2s, background 0.2s;
}

.cml-mobile-menu #mobile-menu li a:hover {
	color: #e8620e;
	background: #fff5f0;
}

/* =============================================================================
   10. Responsive
   ============================================================================= */
@media (max-width: 767px) {
	.cml-topbar {
		display: none;
	}
}
