/* =========================================================
   خدمات و مربیان (Services & Trainers) — page-specific styles.
   Only enqueued on page-services-trainers.php (see functions.php),
   so this file has zero effect on the homepage or any other page.
   Every color/radius/spacing value below reuses the theme's own
   design tokens already defined in main.css's :root — nothing new
   is introduced, so this page matches the rest of the site exactly.
   ========================================================= */

.services-page-main {
	background: var(--color-bg);
	padding-top: clamp(20px, 3vw, 50px);
	padding-bottom: clamp(40px, 5vw, 90px);
}

/* ---------- SECTION HEADINGS (shared) ---------- */
.services-page-section {
	max-width: 1200px;
	margin: 0 auto clamp(50px, 6vw, 100px);
	padding: 0 var(--container-padding);
}

.services-page-section__title {
	color: var(--color-yellow);
	font-size: clamp(20px, 2vw, 32px);
	margin-bottom: clamp(24px, 3vw, 44px);
	text-align: center;
}

/* ---------- SERVICES GRID: alternating yellow/dark cards,
   very rounded corners, icon + title + description + button. ---------- */
.service-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(16px, 2vw, 28px);
}

.service-card {
	border-radius: clamp(24px, 2.6vw, 44px);
	padding: clamp(24px, 2.6vw, 40px) clamp(18px, 2vw, 28px);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(12px, 1.4vw, 18px);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.service-card:focus-within {
	transform: translateY(-8px);
}

.service-card--dark {
	background: var(--color-dark);
	color: var(--color-white);
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.service-card--dark:hover,
.service-card--dark:focus-within {
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.service-card--yellow {
	background: var(--color-yellow);
	color: var(--color-text-on-yellow);
	box-shadow: 0 0 0 rgba(252, 184, 39, 0);
}

.service-card--yellow:hover,
.service-card--yellow:focus-within {
	box-shadow: 0 16px 36px rgba(252, 184, 39, 0.35);
}

.service-card__icon {
	width: clamp(52px, 5vw, 72px);
	height: clamp(52px, 5vw, 72px);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.service-card:hover .service-card__icon,
.service-card:focus-within .service-card__icon {
	transform: scale(1.1) rotate(-6deg);
}

.service-card--dark .service-card__icon {
	background: rgba(252, 184, 39, 0.15);
	color: var(--color-yellow);
}

.service-card--yellow .service-card__icon {
	background: rgba(34, 34, 34, 0.1);
	color: var(--color-text-on-yellow);
}

.service-card__icon svg { width: 55%; height: 55%; }

.service-card__title {
	margin: 0;
	font-size: clamp(15px, 1.1vw, 19px);
	font-weight: 700;
}

.service-card__desc {
	margin: 0;
	font-size: clamp(12.5px, 0.9vw, 14.5px);
	line-height: 1.75;
	opacity: 0.85;
	flex-grow: 1;
}

.service-card__price {
	margin: 0;
	font-size: clamp(13px, 0.95vw, 15.5px);
	font-weight: 800;
}

.service-card__btn {
	display: inline-block;
	border-radius: var(--radius-pill);
	padding: clamp(8px, 0.8vw, 12px) clamp(20px, 2vw, 30px);
	font-size: clamp(12px, 0.8vw, 14px);
	font-weight: 700;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.service-card--dark .service-card__btn {
	border: 1.5px solid var(--color-yellow);
	color: var(--color-yellow);
}

.service-card--dark .service-card__btn:hover,
.service-card--dark .service-card__btn:focus-visible {
	background: var(--color-yellow);
	color: var(--color-text-on-yellow);
	transform: translateY(-2px);
}

.service-card--yellow .service-card__btn {
	border: 1.5px solid var(--color-dark);
	color: var(--color-text-on-yellow);
}

.service-card--yellow .service-card__btn:hover,
.service-card--yellow .service-card__btn:focus-visible {
	background: var(--color-dark);
	color: var(--color-white);
	transform: translateY(-2px);
}

/* ---------- PRODUCTS FEATURE BLOCK (مکمل‌ها و محصولات رژیمی) ---------- */
.products-feature {
	background: linear-gradient(135deg, var(--color-yellow-dark) 0%, var(--color-yellow) 55%, var(--color-yellow-dark) 100%);
	border-radius: clamp(28px, 3vw, 52px);
	padding: clamp(28px, 3.5vw, 52px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(20px, 3vw, 40px);
	flex-wrap: wrap;
	text-align: right;
}

.products-feature__text { flex: 1 1 320px; }

.products-feature__title {
	margin: 0 0 10px;
	color: var(--color-text-on-yellow);
	font-size: clamp(18px, 1.6vw, 26px);
	font-weight: 700;
}

.products-feature__desc {
	margin: 0;
	color: rgba(34, 34, 34, 0.75);
	font-size: clamp(13px, 1vw, 16px);
	line-height: 1.8;
	max-width: 520px;
}

.products-feature__btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--color-dark);
	color: var(--color-white);
	border-radius: var(--radius-pill);
	padding: clamp(12px, 1.1vw, 16px) clamp(26px, 2.4vw, 38px);
	font-weight: 700;
	font-size: clamp(13px, 0.95vw, 15px);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.products-feature__btn:hover,
.products-feature__btn:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* ---------- TRAINERS GRID ---------- */
.trainer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(18px, 2.2vw, 32px);
}

.trainer-card {
	background: var(--color-dark);
	border-radius: clamp(24px, 2.6vw, 44px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trainer-card:hover,
.trainer-card:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.trainer-card__photo-wrap {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
}

.trainer-card__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.trainer-card:hover .trainer-card__photo,
.trainer-card:focus-within .trainer-card__photo {
	transform: scale(1.08);
}

.trainer-card__body {
	padding: clamp(18px, 2vw, 26px);
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-grow: 1;
}

.trainer-card__name {
	margin: 0;
	color: var(--color-white);
	font-size: clamp(16px, 1.15vw, 20px);
	font-weight: 700;
}

.trainer-card__specialty {
	margin: 0;
	color: var(--color-yellow);
	font-size: clamp(12.5px, 0.9vw, 14.5px);
	font-weight: 700;
}

.trainer-card__bio {
	margin: 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: clamp(12px, 0.85vw, 14px);
	line-height: 1.75;
	flex-grow: 1;
}

.trainer-card__btn {
	margin-top: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--color-yellow);
	color: var(--color-text-on-yellow);
	border-radius: var(--radius-pill);
	padding: clamp(10px, 0.9vw, 13px) clamp(18px, 1.6vw, 24px);
	font-weight: 700;
	font-size: clamp(12.5px, 0.9vw, 14.5px);
	transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
	border: none;
	cursor: pointer;
}

.trainer-card__btn:hover,
.trainer-card__btn:focus-visible {
	background: var(--color-white);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- BOOKING MODAL ---------- */
.booking-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.booking-modal.is-open {
	visibility: visible;
	opacity: 1;
}

.booking-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 18, 17, 0.65);
	backdrop-filter: blur(2px);
}

.booking-modal__dialog {
	position: relative;
	background: var(--color-dark);
	color: var(--color-white);
	border-radius: clamp(20px, 2.5vw, 36px);
	padding: clamp(24px, 3vw, 40px);
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	transform: translateY(16px) scale(0.98);
	transition: transform 0.25s ease;
}

.booking-modal.is-open .booking-modal__dialog {
	transform: translateY(0) scale(1);
}

.booking-modal__close {
	position: absolute;
	top: clamp(14px, 1.6vw, 20px);
	left: clamp(14px, 1.6vw, 20px);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--color-white);
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.booking-modal__close:hover,
.booking-modal__close:focus-visible {
	background: var(--color-yellow);
	color: var(--color-text-on-yellow);
	transform: rotate(90deg);
}

.booking-modal__title {
	margin: 0 0 6px;
	color: var(--color-yellow);
	font-size: clamp(18px, 1.6vw, 24px);
	font-weight: 700;
}

.booking-modal__subtitle {
	margin: 0 0 clamp(18px, 2vw, 26px);
	color: rgba(255, 255, 255, 0.7);
	font-size: clamp(12.5px, 0.9vw, 14.5px);
}

.booking-form { display: flex; flex-direction: column; gap: clamp(12px, 1.2vw, 16px); }

.booking-form__field { display: flex; flex-direction: column; gap: 6px; }

.booking-form__field label {
	font-size: clamp(12px, 0.85vw, 13.5px);
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
}

.booking-form__field input,
.booking-form__field select {
	background: rgba(255, 255, 255, 0.06);
	border: 1.5px solid rgba(255, 255, 255, 0.15);
	border-radius: clamp(10px, 1vw, 14px);
	padding: clamp(10px, 1vw, 13px) clamp(12px, 1.1vw, 16px);
	color: var(--color-white);
	font-size: clamp(13px, 0.95vw, 15px);
	font-family: inherit;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.booking-form__field input::placeholder { color: rgba(255, 255, 255, 0.4); }

.booking-form__field input:focus,
.booking-form__field select:focus {
	outline: none;
	border-color: var(--color-yellow);
	background: rgba(255, 255, 255, 0.1);
}

.booking-form__field select option { background: var(--color-dark); color: var(--color-white); }

.booking-form__submit {
	margin-top: 6px;
	background: var(--color-yellow);
	color: var(--color-text-on-yellow);
	border: none;
	border-radius: var(--radius-pill);
	padding: clamp(12px, 1.1vw, 15px);
	font-weight: 700;
	font-size: clamp(14px, 1vw, 16px);
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.booking-form__submit:hover,
.booking-form__submit:focus-visible {
	background: var(--color-white);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.booking-form__submit:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
	box-shadow: none;
}

.booking-form__feedback {
	margin: 0;
	font-size: clamp(12.5px, 0.9vw, 14px);
	text-align: center;
	min-height: 1.4em;
}

.booking-form__feedback[data-state="success"] { color: #7CD98C; }
.booking-form__feedback[data-state="error"] { color: #ff8a8a; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
	.service-grid { grid-template-columns: repeat(3, 1fr); }
	.trainer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.service-grid { grid-template-columns: repeat(2, 1fr); }
	.products-feature { text-align: center; justify-content: center; }
	.products-feature__desc { margin: 0 auto; }
}

@media (max-width: 480px) {
	.service-grid { grid-template-columns: 1fr; }
	.trainer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.service-card,
	.service-card__icon,
	.trainer-card,
	.trainer-card__photo,
	.booking-modal,
	.booking-modal__dialog,
	.booking-modal__close,
	.service-card__btn,
	.trainer-card__btn,
	.booking-form__submit,
	.products-feature__btn {
		transition: none !important;
	}
}
