/* ==========================================================================
   CCSOL Redesign — Full-screen menu drawer (v1.5.0)
   Per the menu redesign brief (2026-11-16): the theme's mobile drawer
   becomes a full-screen (100vw) drawer on ALL devices, with its content
   centred in a ~860px column. The drawer header (logo + close button)
   is kept as-is. The footer below the nav is filled with the tagline,
   contact info, a quick-contact button, Recent Posts and Recent
   Projects — no empty void.

   The drawer markup is the theme's own (#ccsol-mobile-nav, built by
   Site Fixes' ccsol_fixes_mobile_menu_html()): 5 top items — About
   (7 sub-items), Services (12 sub-items), Portfolio, Updates, Contact.
   This file only RESTYLES that markup; it does not replace it.

   Specificity note: Site Fixes sets the drawer width with
   #ccsol-mobile-nav{width:min(430px,92vw)!important} (base + a
   >=769px media query). The doubled-ID selectors below beat that rule
   regardless of stylesheet order (same trick as the v1.3.4 affiliation
   un-hide). The drawer's open/close behaviour (theme JS: .active class,
   translateX, overlay, Esc, body scroll-lock) is untouched.

   The footer block is printed inside a <template> in the page footer
   (all front-end pages) and moved into .ccsol-menu-wrapper by
   assets/js/menu.js, so it scrolls with the menu. The footer must live
   INSIDE .ccsol-menu-wrapper — that is the scroll container
   (flex:1, overflow-y:auto); #ccsol-mobile-nav itself has
   overflow:hidden.
   ========================================================================== */

/* --- Full-screen drawer (all viewports) --- */
#ccsol-mobile-nav#ccsol-mobile-nav {
	width: 100vw !important;
	max-width: 100vw !important;
	left: 0 !important;
	right: 0 !important;
	box-shadow: none !important;
}

/* --- Centred content column (~860px) --- */
#ccsol-mobile-nav#ccsol-mobile-nav .ccsol-mobile-menu-header {
	width: 100% !important;
	max-width: 860px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

#ccsol-mobile-nav#ccsol-mobile-nav .ccsol-mobile-menu-list {
	width: 100% !important;
	max-width: 860px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* "All Services" row (inserted first in the Services submenu by
   menu.js so the parent page stays reachable after the row-tap fix):
   a subtle divider separates it from the service list. */
#ccsol-mobile-nav .ccsol-rd-menu-all-services {
	border-bottom: 1px solid rgba(77, 163, 255, .18) !important;
	margin-bottom: 6px !important;
	padding-bottom: 6px !important;
}

/* --- Drawer footer (filled, no empty void) --- */
.ccsol-rd-menu-footer {
	flex: 0 0 auto;
	width: 100%;
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
	padding: 28px 20px 36px;
	background:
		radial-gradient(600px 220px at 50% 0, rgba(30, 144, 255, .12), transparent 70%),
		linear-gradient(180deg, rgba(10, 31, 61, .55) 0%, rgba(5, 11, 22, .65) 100%);
	border-top: 1px solid rgba(77, 163, 255, .18);
	color: #c3d0e8;
}

.ccsol-rd-menu-tagline {
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
	margin: 0 0 18px;
}

/* --- Contact row --- */
.ccsol-rd-menu-contact {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 18px;
}

.ccsol-rd-menu-contact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(77, 163, 255, .16);
	border-radius: 12px;
	text-decoration: none;
	color: #dbe6f7;
	transition: background .2s ease, border-color .2s ease;
}

.ccsol-rd-menu-contact-item:hover,
.ccsol-rd-menu-contact-item:focus-visible {
	background: rgba(77, 163, 255, .12);
	border-color: rgba(77, 163, 255, .45);
	color: #fff;
}

.ccsol-rd-menu-contact-item i {
	flex: 0 0 auto;
	width: 20px;
	text-align: center;
	font-size: 17px;
	color: #4da3ff;
}

.ccsol-rd-menu-contact-item .fa-whatsapp {
	color: #25d366;
}

.ccsol-rd-menu-contact-label {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8fa3c4;
}

.ccsol-rd-menu-contact-value {
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	word-break: break-word;
}

/* --- Quick contact button (gold) --- */
.ccsol-rd-menu-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 15px 22px;
	margin: 0 0 26px;
	background: #f2c14e;
	color: #1a1206;
	font-size: 16px;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	border-radius: 12px;
	box-shadow: 0 6px 22px rgba(242, 193, 78, .25);
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ccsol-rd-menu-cta:hover,
.ccsol-rd-menu-cta:focus-visible {
	background: #ffd97a;
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(242, 193, 78, .35);
	color: #1a1206;
}

/* --- Recent Posts / Recent Projects --- */
.ccsol-rd-menu-recent {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
}

.ccsol-rd-menu-col h3 {
	color: #4da3ff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(77, 163, 255, .18);
}

.ccsol-rd-menu-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ccsol-rd-menu-col li a {
	display: block;
	color: #dbe6f7;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
	transition: color .2s ease;
}

.ccsol-rd-menu-col li a:hover,
.ccsol-rd-menu-col li a:focus-visible {
	color: #4da3ff;
}

.ccsol-rd-menu-date {
	display: block;
	margin-top: 3px;
	color: #8fa3c4;
	font-size: 12px;
	font-weight: 400;
}

.ccsol-rd-menu-empty {
	color: #8fa3c4;
	font-size: 14px;
	margin: 0;
}

/* --- Desktop: contact row 4-across feel, recent lists in 2 columns --- */
@media (min-width: 900px) {
	.ccsol-rd-menu-contact {
		flex-direction: row;
	}

	.ccsol-rd-menu-contact-item {
		flex: 1 1 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding: 14px 16px;
	}

	.ccsol-rd-menu-contact-item i {
		font-size: 20px;
	}

	.ccsol-rd-menu-cta {
		width: auto;
		min-width: 280px;
	}

	.ccsol-rd-menu-recent {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
}

/* --- v1.5.3/v1.5.4: smooth submenu hover (flicker fix) ---
   Browser diagnosis (2026-11-16): NO collapse loop, NO translate jump,
   NO class toggling — the submenu is pixel-stable while the mouse is
   still. The "flicker" is the hover highlight snapping INSTANTLY from
   row to row as the mouse moves: background, text colour, icon colour
   and the drop shadow all switch in one frame, because the winning
   hover rules change properties (box-shadow, text-shadow) that the
   existing transition lists do not cover. These rules give the submenu
   links, their icons/titles and the toggle buttons one smooth
   transition. v1.5.3 used ~0.18s, which is live and wins on
   specificity (verified in the combined CSS) but is simply too fast
   to perceive as smooth — a browser test still saw the highlight jump
   instantly. v1.5.4 lengthens it to a clearly visible 0.3s.
   Doubled-ID selectors + !important beat the theme's
   `transition: all 0.3s cubic-bezier(.2,.9,.4,1.1)` on submenu links
   and the Site Fixes `transition: ... !important` rules. `transform`
   is deliberately NOT transitioned: Site Fixes forces transform:none
   on hover, and the toggle's translateY(-50%) positioning must never
   animate (its chevron rotation is on the inner <i>, which already
   has its own transition). Accordion behaviour and the row-tap fix
   in menu.js are untouched. */
#ccsol-mobile-nav#ccsol-mobile-nav .ccsol-mobile-menu-list .sub-menu li a {
	transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, border-color .3s ease, text-shadow .3s ease !important;
}

#ccsol-mobile-nav#ccsol-mobile-nav .ccsol-mobile-menu-list .sub-menu li a .ccsol-menu-sub-icon,
#ccsol-mobile-nav#ccsol-mobile-nav .ccsol-mobile-menu-list .sub-menu li a .ccsol-menu-sub-title,
#ccsol-mobile-nav#ccsol-mobile-nav .ccsol-mobile-menu-list .sub-menu li a .submenu-icon,
#ccsol-mobile-nav#ccsol-mobile-nav .ccsol-mobile-menu-list .sub-menu li a .submenu-title {
	transition: color .3s ease, text-shadow .3s ease !important;
}

#ccsol-mobile-nav#ccsol-mobile-nav .submenu-toggle {
	transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease !important;
}
