/*
Theme Name: Edger Child (AMIN)
Theme URI: https://estudiopatagon.com/projects/edger-for-wordpress/?utm_source=wordpress_theme&utm_medium=referral&utm_campaign=edger-wp
Author: EstudioPatagon
Author URI: https://estudiopatagon.com/?utm_source=wordpress_theme&utm_medium=referral&utm_campaign=edger-wp
Description: Child theme based on Edger — custom Fath Khoun logo in header and a menu slider below the header.
Template: edger
Version: 1.1.0
Requires at least: 5.0
Tested up to: 6.7

*/

/* =========================================================
   1) Logo image instead of site title text (header + mobile)
   ========================================================= */
#header .logo.text-logo a.title,
.mobile.main-nav .logo.text-logo a.title {
	display: inline-block;
	width: 200px;
	height: 58px;
	max-width: 60vw;
	font-size: 0;
	line-height: 0;
	overflow: hidden;
	background-image: url('images/logo.png');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
}

#header .logo.text-logo a.title .name,
.mobile.main-nav .logo.text-logo a.title .name {
	display: none !important;
}

@media (max-width: 480px) {
	#header .logo.text-logo a.title,
	.mobile.main-nav .logo.text-logo a.title {
		width: 150px;
		height: 44px;
	}
}

/* =========================================================
   2) Menu slider below the header
   ========================================================= */
.fath-menu-slider-wrapper {
	max-width: 1200px;
	margin: 15px auto 10px;
	padding: 0 20px;
	box-sizing: border-box;
}

.fath-menu-slider {
	position: relative;
	border-radius: 14px;
	box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.4);
}

/* --- slides --- */
.fath-menu-slide {
	display: block;
	position: relative;
	height: 190px;
	color: #fff !important;
	text-align: center;
	text-decoration: none;
	overflow: hidden;
	border-radius: 14px;
}

/* subtle watermark icon (left side in RTL) */
.fath-menu-slide::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -25px;
	width: 230px;
	background-image: url('images/logo2.png');
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 200px auto;
	opacity: 0.10;
	pointer-events: none;
}

/* hover veil */
.fath-menu-slide::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(255, 255, 255, 0);
	transition: background 0.35s ease;
	pointer-events: none;
}

.fath-menu-slide:hover::after {
	background: rgba(255, 255, 255, 0.08);
}

.fath-menu-slide-title {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 36px;
	font-weight: 800;
	letter-spacing: 0.3px;
	white-space: nowrap;
	text-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
}

/* per-slide accent shades */
.fath-menu-slider .fath-menu-slide:nth-child(6n + 1) { background: linear-gradient(130deg, #a5151b 0%, #d12127 55%, #7e1015 100%); }
.fath-menu-slider .fath-menu-slide:nth-child(6n + 2) { background: linear-gradient(130deg, #8f1418 0%, #c01a20 60%, #6d0e13 100%); }
.fath-menu-slider .fath-menu-slide:nth-child(6n + 3) { background: linear-gradient(130deg, #b01e23 0%, #d9393f 55%, #8a1218 100%); }
.fath-menu-slider .fath-menu-slide:nth-child(6n + 4) { background: linear-gradient(130deg, #7e1015 0%, #b82027 60%, #5f0b0f 100%); }
.fath-menu-slider .fath-menu-slide:nth-child(6n + 5) { background: linear-gradient(130deg, #9c161c 0%, #cc282e 55%, #711014 100%); }
.fath-menu-slider .fath-menu-slide:nth-child(6n + 6) { background: linear-gradient(130deg, #aa191f 0%, #d12127 50%, #6d0e13 100%); }

/* --- dots (restyle theme dots for the red slider) --- */
.fath-menu-slider .slick-dots {
	bottom: 14px;
}

.fath-menu-slider .slick-dots li button {
	background: rgba(255, 255, 255, 0.35);
	box-shadow: none;
}

.fath-menu-slider .slick-dots li button:hover {
	background: rgba(255, 255, 255, 0.65);
}

.fath-menu-slider .slick-dots li.slick-active button {
	background: #fff;
	width: 22px;
	opacity: 1;
}

/* --- arrows (theme uses SVG masks; recolor the glyph) --- */
.fath-menu-slider .slick-arrow {
	z-index: 10;
	width: 44px;
	height: 44px;
	line-height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.fath-menu-slider .slick-arrow::before {
	background-color: #b01e23;
	-webkit-mask-size: 30px !important;
	mask-size: 30px !important;
}

.fath-menu-slider .slick-prev {
	left: auto;
	right: 18px;
}

.fath-menu-slider .slick-next {
	right: auto;
	left: 18px;
}

/* --- responsive --- */
@media (max-width: 768px) {
	.fath-menu-slider .slick-arrow {
		display: none !important;
	}

	.fath-menu-slide {
		height: 130px;
	}

	.fath-menu-slide::before {
		left: -40px;
		background-size: 140px auto;
		opacity: 0.08;
	}

	.fath-menu-slide-title {
		font-size: 24px;
	}
}

/* --- graceful fallback if Slick is unavailable --- */
.fath-menu-slider.fath-no-slick {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 6px;
}

.fath-menu-slider.fath-no-slick .fath-menu-slide {
	flex: 0 0 240px;
	height: 120px;
	scroll-snap-align: center;
}
