/*
 * alnokhba-services.css
 * Services catalog page — matches ServicesSection.tsx design.
 * gap:1px grid + accent sidebar + Playfair Display names
 */

/* ============================================================
   PAGE WRAPPER
   ============================================================ */

.an-svc-page {
	background: #000;
	min-height: 100vh;
	padding-bottom: 6rem;
	direction: rtl;
}

/* ============================================================
   PAGE HEADER — editorial minimal
   ============================================================ */

.an-svc-header {
	max-width: 80rem;
	margin: 0 auto;
	padding: 4rem 1.5rem 3rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.an-svc-header {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		padding-top: 5rem;
	}
}

.an-svc-header__kicker {
	font-family: 'Tajawal', 'Inter', sans-serif;
	font-size: 0.7rem;
	letter-spacing: 0.4em;
	color: #C9A97A;
	text-transform: uppercase;
	margin: 0 0 0.625rem;
}

.an-svc-header__title {
	font-family: 'Playfair Display', serif;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 400;
	color: #fff;
	line-height: 1;
	margin: 0 0 0.5rem;
}

.an-svc-header__note {
	font-family: 'Tajawal', 'Inter', sans-serif;
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.3);
	margin: 0;
}

.an-svc-header__book-btn {
	font-family: 'Tajawal', 'Inter', sans-serif;
	font-size: 0.72rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border: 1px solid #C9A97A;
	color: #C9A97A;
	background: transparent;
	padding: 0.75rem 1.75rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.3s ease, color 0.3s ease;
	align-self: flex-start;
}

.an-svc-header__book-btn:hover {
	background: #C9A97A;
	color: #000;
}

/* ============================================================
   BODY + TOOLBAR
   ============================================================ */

.an-svc-body {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.an-svc-toolbar {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
	.an-svc-toolbar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* Favorites toggle button */
.an-svc-fav-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: 'Tajawal', 'Inter', sans-serif;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 0.5rem 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.an-svc-fav-btn:hover,
.an-svc-fav-btn[aria-pressed="true"] {
	border-color: #C9A97A;
	color: #C9A97A;
}

/* Category tabs */
.an-svc-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

.an-svc-cats__tab {
	font-family: 'Inter', sans-serif;
	font-size: 0.65rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	text-decoration: none;
	padding: 0.5rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	transition: color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.an-svc-cats__tab:hover {
	color: rgba(255, 255, 255, 0.8);
}

.an-svc-cats__tab.is-active {
	color: #fff;
	border-bottom-color: #fff;
}

/* ============================================================
   SERVICES GRID — gap:1px creates hairline lines between cards
   ============================================================ */

.an-svc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1px;
	background-color: rgba(255, 255, 255, 0.07);
}

/* ============================================================
   SERVICE CARD — matches ServicesSection.tsx exactly
   ============================================================ */

.an-svc-card--filtered {
	display: none !important;
}

.an-svc-card {
	position: relative;
	background-color: #000;
	padding: 2rem;
	overflow: hidden;
	transition: background-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	display: flex;
	flex-direction: column;
	cursor: pointer;
}

/* Accent sidebar — 3px, grows top-to-bottom on hover */
.an-svc-card__bar {
	position: absolute;
	top: 0;
	right: 0;
	width: 3px;
	height: 0%;
	transition: height 0.4s ease;
}

/* Favorite button */
.an-svc-card__fav {
	position: absolute;
	top: 1rem;
	left: 1rem;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.2);
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
	padding: 0;
}

.an-svc-card__fav:hover {
	background: rgba(201, 169, 122, 0.2);
	border-color: #C9A97A;
}

.an-svc-card__fav.an-fav-btn--on {
	border-color: #C9A97A;
}

/* Link wrapper — fills card space */
.an-svc-card__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	flex: 1;
	color: inherit;
}

.an-svc-card__link:hover .an-svc-card__book-btn {
	background-color: var(--an-svc-accent, #C9A97A);
	color: #000;
}

/* Accent dot */
.an-svc-card__dot {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	margin-bottom: 1.25rem;
	transition: transform 0.2s ease;
}

.an-svc-card:hover .an-svc-card__dot {
	transform: scale(1.4);
}

/* English tag */
.an-svc-card__tag {
	font-family: 'Inter', sans-serif;
	font-size: 0.58rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	margin: 0 0 0.625rem;
}

/* Arabic name — Playfair Display */
.an-svc-card__name {
	font-family: 'Playfair Display', serif;
	font-size: 1.4rem;
	font-weight: 400;
	color: #F5F5F0;
	margin: 0 0 0.75rem;
	line-height: 1.3;
}

/* Description */
.an-svc-card__desc {
	font-family: 'Tajawal', 'Inter', sans-serif;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.4);
	line-height: 1.75;
	margin: 0 0 1.5rem;
	flex: 1;
}

/* Footer: price + duration */
.an-svc-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: auto;
}

.an-svc-card__price {
	font-family: 'Playfair Display', serif;
	font-size: 1.1rem;
	color: #F5F5F0;
}

.an-svc-card__dur {
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: 'Tajawal', 'Inter', sans-serif;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.35);
}

/* Book now button — shown below the link area */
.an-svc-card__book-btn {
	display: block;
	font-family: 'Tajawal', 'Inter', sans-serif;
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	background: transparent;
	color: #C9A97A;
	border: 1px solid #C9A97A;
	padding: 0.625rem 1rem;
	text-align: center;
	text-decoration: none;
	margin-top: 1rem;
	transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.an-svc-empty {
	grid-column: 1 / -1;
	background: #000;
	padding: 4rem 2rem;
	text-align: center;
}

.an-svc-empty p {
	font-family: 'Tajawal', 'Inter', sans-serif;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.4);
	margin: 0 0 1.5rem;
}

.an-svc-empty__btn {
	display: inline-block;
	font-family: 'Tajawal', 'Inter', sans-serif;
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.6);
	background: none;
	padding: 0.625rem 1.5rem;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.an-svc-empty__btn:hover {
	border-color: #fff;
	color: #fff;
}
