/**
 * ShadiHall — Homepage Component Library
 *
 * Shared "sh-*" prefixed components used by:
 *   [shadihall_homepage]        (full homepage: hero, stats, featured, cities, types, how-it-works, CTA)
 *   [shadihall_featured_halls]  (standalone featured-halls section)
 *
 * Relies on the --sh-* CSS variables already defined in frontend.css's :root block
 * (colors, fonts, radii, shadows). This file only adds the "sh-" component classes
 * that those two shortcodes' markup references but that don't exist anywhere else.
 *
 * Table of Contents
 * -----------------
 * 1. Buttons (.sh-btn*)
 * 2. Section header (.sh-section__*)
 * 3. Hall card (.sh-hall-card, .sh-card__*)
 * 4. Empty state (.sh-empty-state*)
 * 5. Hero (.sh-hero*)
 * 6. Stats strip (.sh-stats*)
 * 7. Cities grid (.sh-cities*, .sh-city-card*)
 * 8. Hall types grid (.sh-types*, .sh-type-card*)
 * 9. How it works (.sh-how*)
 * 10. CTA banner (.sh-cta-banner*)
 * 11. Layout utilities (.sh-homepage, .sh-section)
 * 12. Responsive
 * ========================================================================== */

/* ==========================================================================
   11. LAYOUT UTILITIES
   ========================================================================== */

.sh-homepage {
	font-family: var(--sh-font-body);
	color: var(--sh-text);
	background: var(--sh-bg);
}

.sh-homepage * {
	box-sizing: border-box;
}

.sh-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 24px;
}

/* ==========================================================================
   1. BUTTONS
   ========================================================================== */

.sh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--sh-radius);
	font-family: var(--sh-font-body);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background var(--sh-transition), color var(--sh-transition),
		border-color var(--sh-transition), transform var(--sh-transition);
	line-height: 1.2;
}

.sh-btn--primary {
	background: var(--sh-red);
	color: var(--sh-white);
}
.sh-btn--primary:hover,
.sh-btn--primary:focus {
	background: var(--sh-red-dark);
	color: var(--sh-white);
}

.sh-btn--outline {
	background: transparent;
	border-color: var(--sh-red);
	color: var(--sh-red);
}
.sh-btn--outline:hover,
.sh-btn--outline:focus {
	background: var(--sh-red);
	color: var(--sh-white);
}

.sh-btn--white {
	background: var(--sh-white);
	color: var(--sh-red);
}
.sh-btn--white:hover,
.sh-btn--white:focus {
	background: var(--sh-bg-alt);
	color: var(--sh-red-dark);
}

.sh-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.6);
	color: var(--sh-white);
}
.sh-btn--ghost:hover,
.sh-btn--ghost:focus {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--sh-white);
	color: var(--sh-white);
}

.sh-btn--lg {
	padding: 15px 30px;
	font-size: 15px;
}

.sh-btn--full {
	width: 100%;
}

/* ==========================================================================
   2. SECTION HEADER
   ========================================================================== */

.sh-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 36px;
}

.sh-section__head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.sh-section__eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sh-red);
	margin-bottom: 8px;
}

.sh-section__title {
	font-family: var(--sh-font-head);
	font-size: 32px;
	font-weight: 700;
	color: var(--sh-text);
	margin: 0 0 8px;
	line-height: 1.2;
}

.sh-section__desc {
	font-size: 15px;
	color: var(--sh-text-muted);
	margin: 0;
	max-width: 560px;
}

.sh-section__see-all {
	flex: 0 0 auto;
}

/* ==========================================================================
   3. HALL CARD
   ========================================================================== */

.sh-hall-card {
	background: var(--sh-white);
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: box-shadow var(--sh-transition), transform var(--sh-transition),
		border-color var(--sh-transition);
}

.sh-hall-card:hover {
	box-shadow: var(--sh-shadow-lg);
	transform: translateY(-4px);
	border-color: var(--sh-red);
}

.sh-card__placeholder {
	width: 100%;
	aspect-ratio: 16 / 10;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sh-bg-alt);
	font-size: 44px;
}

.sh-card__body {
	padding: 18px 16px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.sh-card__type-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--sh-red);
	background: var(--sh-red-light);
	padding: 3px 10px;
	border-radius: 50px;
	margin-bottom: 8px;
	align-self: flex-start;
}

.sh-card__title {
	font-family: var(--sh-font-head);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
}

.sh-card__title a {
	color: var(--sh-text);
	text-decoration: none;
}
.sh-card__title a:hover {
	color: var(--sh-red);
}

.sh-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 10px;
}

.sh-card__meta-item {
	font-size: 13px;
	color: var(--sh-text-muted);
}

.sh-card__price {
	font-size: 16px;
	font-weight: 700;
	color: var(--sh-red);
	margin: 0 0 14px;
}

.sh-card__price-unit {
	font-size: 12px;
	font-weight: 500;
	color: var(--sh-text-muted);
}

.sh-btn--full.sh-card__cta,
.sh-card__body > .sh-btn--full {
	margin-top: auto;
}

/* ==========================================================================
   4. EMPTY STATE
   ========================================================================== */

.sh-empty-state {
	text-align: center;
	padding: 56px 32px;
	background: var(--sh-bg-alt);
	border: 2px dashed var(--sh-border);
	border-radius: var(--sh-radius-lg);
}

.sh-empty-state__icon {
	font-size: 56px;
	margin-bottom: 16px;
}

.sh-empty-state h3 {
	font-family: var(--sh-font-head);
	font-size: 22px;
	color: var(--sh-text);
	margin: 0 0 10px;
}

.sh-empty-state p {
	font-size: 14px;
	color: var(--sh-text-muted);
	max-width: 460px;
	margin: 0 auto 24px;
}

/* ==========================================================================
   5. HERO
   ========================================================================== */

.sh-hero {
	position: relative;
	padding: 90px 24px 70px;
	background: linear-gradient(135deg, var(--sh-red-dark) 0%, var(--sh-red) 100%);
	color: var(--sh-white);
	text-align: center;
	overflow: hidden;
}

.sh-hero__overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 60%);
	pointer-events: none;
}

.sh-hero__content {
	position: relative;
	max-width: 820px;
	margin: 0 auto;
}

.sh-hero__eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sh-gold);
	margin-bottom: 14px;
}

.sh-hero__title {
	font-family: var(--sh-font-head);
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 14px;
	line-height: 1.2;
}

.sh-hero__subtitle {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 32px;
}

.sh-hero__search {
	background: var(--sh-white);
	border-radius: var(--sh-radius-lg);
	padding: 16px;
	box-shadow: var(--sh-shadow-lg);
}

.sh-hero__search-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}

.sh-hero__search-field {
	flex: 1 1 160px;
	text-align: left;
}

.sh-hero__search-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--sh-text-muted);
	margin-bottom: 6px;
}

.sh-hero__select,
.sh-hero__input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	font-size: 14px;
	color: var(--sh-text);
	background: var(--sh-white);
	font-family: var(--sh-font-body);
}

.sh-hero__search-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	background: var(--sh-red);
	color: var(--sh-white);
	border: none;
	border-radius: var(--sh-radius);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background var(--sh-transition);
}
.sh-hero__search-btn:hover {
	background: var(--sh-red-dark);
}

.sh-hero__quick-cities {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	align-items: center;
}

.sh-hero__quick-label {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}

.sh-hero__quick-link {
	font-size: 13px;
	color: var(--sh-white);
	background: rgba(255, 255, 255, 0.15);
	padding: 5px 14px;
	border-radius: 50px;
	text-decoration: none;
	transition: background var(--sh-transition);
}
.sh-hero__quick-link:hover {
	background: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   6. STATS STRIP
   ========================================================================== */

.sh-stats {
	background: var(--sh-white);
	border-bottom: 1px solid var(--sh-border);
}

.sh-stats__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 28px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.sh-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 28px;
}

.sh-stats__number {
	font-family: var(--sh-font-head);
	font-size: 26px;
	font-weight: 700;
	color: var(--sh-red);
}

.sh-stats__label {
	font-size: 12px;
	color: var(--sh-text-muted);
	margin-top: 2px;
}

.sh-stats__divider {
	width: 1px;
	height: 36px;
	background: var(--sh-border);
}

/* ==========================================================================
   7. CITIES GRID
   ========================================================================== */

.sh-cities__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

.sh-city-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	background: var(--sh-white);
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	text-decoration: none;
	color: var(--sh-text);
	transition: border-color var(--sh-transition), box-shadow var(--sh-transition);
}
.sh-city-card:hover {
	border-color: var(--sh-red);
	box-shadow: var(--sh-shadow);
}

.sh-city-card__icon {
	font-size: 20px;
}

.sh-city-card__name {
	flex: 1;
	font-weight: 600;
	font-size: 14px;
}

.sh-city-card__arrow {
	color: var(--sh-red);
	font-size: 16px;
}

/* ==========================================================================
   8. HALL TYPES GRID
   ========================================================================== */

.sh-types__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.sh-type-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 28px 16px;
	background: var(--sh-white);
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius-lg);
	text-decoration: none;
	color: var(--sh-text);
	text-align: center;
	transition: border-color var(--sh-transition), transform var(--sh-transition);
}
.sh-type-card:hover {
	border-color: var(--sh-red);
	transform: translateY(-3px);
}

.sh-type-card__icon {
	font-size: 32px;
}

.sh-type-card__name {
	font-weight: 600;
	font-size: 14px;
}

/* ==========================================================================
   9. HOW IT WORKS
   ========================================================================== */

.sh-how__steps {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 18px;
	flex-wrap: wrap;
}

.sh-how__step {
	flex: 1 1 220px;
	max-width: 280px;
	text-align: center;
	background: var(--sh-white);
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius-lg);
	padding: 28px 20px;
	position: relative;
}

.sh-how__step-num {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--sh-red);
	color: var(--sh-white);
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sh-how__step-icon {
	font-size: 36px;
	margin: 10px 0 12px;
}

.sh-how__step-title {
	font-family: var(--sh-font-head);
	font-size: 17px;
	margin: 0 0 8px;
}

.sh-how__step-desc {
	font-size: 13px;
	color: var(--sh-text-muted);
	margin: 0;
	line-height: 1.6;
}

.sh-how__connector {
	align-self: center;
	font-size: 22px;
	color: var(--sh-border);
	padding-top: 50px;
}

/* ==========================================================================
   10. CTA BANNER
   ========================================================================== */

.sh-cta-banner {
	background: linear-gradient(135deg, var(--sh-red-dark) 0%, var(--sh-red) 100%);
	color: var(--sh-white);
	padding: 56px 24px;
}

.sh-cta-banner__inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.sh-cta-banner__text {
	flex: 1 1 380px;
}

.sh-cta-banner__title {
	font-family: var(--sh-font-head);
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 12px;
}

.sh-cta-banner__desc {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 18px;
	max-width: 520px;
}

.sh-cta-banner__features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	font-size: 13px;
}

.sh-cta-banner__features li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sh-cta-banner__actions {
	flex: 0 0 auto;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
	.sh-hero__title {
		font-size: 32px;
	}

	.sh-hero__search-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.sh-hero__search-btn {
		justify-content: center;
	}

	.sh-how__steps {
		flex-direction: column;
		align-items: center;
	}

	.sh-how__connector {
		display: none;
	}

	.sh-cta-banner__inner {
		flex-direction: column;
		text-align: center;
	}

	.sh-cta-banner__features {
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.sh-section {
		padding: 40px 16px;
	}

	.sh-hero {
		padding: 60px 16px 50px;
	}

	.sh-hero__title {
		font-size: 26px;
	}

	.sh-section__title {
		font-size: 24px;
	}

	.sh-stats__inner {
		gap: 0;
	}

	.sh-stats__item {
		padding: 8px 16px;
		flex: 1 1 45%;
	}

	.sh-stats__divider {
		display: none;
	}
}

/* ==========================================================================
   13. TESTIMONIALS
   ========================================================================== */

.sh-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.sh-testimonial-card {
	background: var(--sh-white);
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius-lg);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: box-shadow var(--sh-transition), transform var(--sh-transition), border-color var(--sh-transition);
}

.sh-testimonial-card:hover {
	box-shadow: var(--sh-shadow-lg);
	transform: translateY(-3px);
	border-color: var(--sh-red);
}

.sh-testimonial-card__stars {
	color: #f5a623;
	font-size: 16px;
	letter-spacing: 2px;
}

.sh-testimonial-card__text {
	font-size: 14px;
	color: var(--sh-text-muted);
	line-height: 1.7;
	margin: 0;
	flex: 1;
	font-style: italic;
}

.sh-testimonial-card__author {
	display: flex;
	align-items: center;
	gap: 12px;
	border-top: 1px solid var(--sh-border);
	padding-top: 14px;
}

.sh-testimonial-card__avatar {
	font-size: 28px;
	line-height: 1;
}

.sh-testimonial-card__name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--sh-text);
}

.sh-testimonial-card__city {
	display: block;
	font-size: 12px;
	color: var(--sh-text-muted);
	margin-top: 2px;
}

/* ==========================================================================
   14. WHY CHOOSE US
   ========================================================================== */

.sh-why {
	background: var(--sh-bg-alt);
}

.sh-why__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.sh-why__item {
	background: var(--sh-white);
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius-lg);
	padding: 28px 22px;
	text-align: center;
	transition: border-color var(--sh-transition), transform var(--sh-transition);
}

.sh-why__item:hover {
	border-color: var(--sh-red);
	transform: translateY(-3px);
}

.sh-why__icon {
	font-size: 36px;
	margin-bottom: 12px;
}

.sh-why__title {
	font-family: var(--sh-font-head);
	font-size: 16px;
	font-weight: 700;
	color: var(--sh-text);
	margin: 0 0 8px;
}

.sh-why__desc {
	font-size: 13px;
	color: var(--sh-text-muted);
	margin: 0;
	line-height: 1.65;
}

/* ==========================================================================
   15. FAQ
   ========================================================================== */

.sh-faq__list {
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sh-faq__item {
	background: var(--sh-white);
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	overflow: hidden;
	transition: border-color var(--sh-transition);
}

.sh-faq__item[open] {
	border-color: var(--sh-red);
}

.sh-faq__question {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	font-size: 15px;
	font-weight: 600;
	color: var(--sh-text);
	cursor: pointer;
	user-select: none;
	gap: 16px;
}

.sh-faq__question::-webkit-details-marker {
	display: none;
}

.sh-faq__question::after {
	content: '+';
	font-size: 22px;
	font-weight: 400;
	color: var(--sh-red);
	flex-shrink: 0;
	transition: transform var(--sh-transition);
}

.sh-faq__item[open] .sh-faq__question::after {
	transform: rotate(45deg);
}

.sh-faq__answer {
	padding: 0 20px 18px;
}

.sh-faq__answer p {
	margin: 0;
	font-size: 14px;
	color: var(--sh-text-muted);
	line-height: 1.7;
}

@media (max-width: 640px) {
	.sh-testimonials__grid,
	.sh-why__grid {
		grid-template-columns: 1fr;
	}
}
