/* =========================================================
   Sonno Divan Section – Front-End Styles
   ========================================================= */

/* ── Section wrapper ── */
.sonno-section {
	position: relative;
	width: 100%;
	min-height: 640px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	overflow: hidden;
	box-sizing: border-box;
}

/* Mobile background swap via CSS custom property */
@media (max-width: 767px) {
	.sonno-section {
		background-image: var(--sonno-bg-mobile) !important;
	}
}

/* ── Overlay ── */
.sonno-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

/* ── Inner container ── */
.sonno-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 24px;
	display: flex;
	box-sizing: border-box;
}

/* Card position variants */
.sonno-card-pos-left  .sonno-inner { justify-content: flex-start; }
.sonno-card-pos-center .sonno-inner { justify-content: center; }
.sonno-card-pos-right .sonno-inner  { justify-content: flex-end; }

/* ── Card ── */
.sonno-card {
	background: #F7F2EC;
	border-radius: 16px;
	padding: 40px;
	width: 420px;
	max-width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sonno-card--shadow {
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

/* ── Title ── */
.sonno-card-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 32px;
	font-weight: 700;
	color: #1a1a2e;
	text-align: center;
	margin: 0 0 4px;
	line-height: 1.2;
}

/* ── Feature blocks ── */
.sonno-features {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.sonno-feature {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.sonno-feature-icon {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sonno-feature-icon-img {
	width: 38px;
	height: 38px;
	object-fit: contain;
}

.sonno-feature-icon-emoji {
	font-size: 26px;
	line-height: 1;
	display: block;
}

.sonno-feature-icon-emoji svg {
	width: 38px;
	height: 38px;
}

.sonno-feature-body {
	flex: 1;
}

.sonno-feature-heading {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 4px;
	line-height: 1.3;
}

.sonno-feature-desc {
	font-size: 13px;
	font-weight: 400;
	color: #555;
	margin: 0;
	line-height: 1.55;
}

/* ── Bottom row ── */
.sonno-card-bottom {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 4px;
}

/* ── Button ── */
.sonno-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background-color: #6b2d8b;
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	min-width: 200px;
	height: 48px;
	line-height: 48px;
	border-radius: 6px;
	padding: 0 20px;
	border: none;
	cursor: pointer;
	transition: background-color 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease;
	white-space: nowrap;
	box-sizing: border-box;
}

.sonno-btn:hover {
	background-color: #4e2068;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(107, 45, 139, 0.35);
	text-decoration: none;
	color: #fff;
}

.sonno-btn-arrow {
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
}

/* ── Reviews ── */
.sonno-reviews {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.sonno-stars {
	display: flex;
	gap: 2px;
}

.sonno-star {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 3px;
	background-color: #00b67a; /* Trustpilot green – overridden by controls */
	position: relative;
}

/* Star shapes using clip-path */
.sonno-star::before {
	content: '★';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: #fff;
	line-height: 16px;
}

.sonno-star--half::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	width: 50%;
	height: 100%;
	background: rgba(255,255,255,0.5);
	border-radius: 0 3px 3px 0;
}

.sonno-star--empty {
	background-color: #ddd !important;
}

.sonno-review-text {
	font-size: 13px;
	color: #333;
	white-space: nowrap;
}

/* ── Payment icons row ── */
.sonno-payment-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-top: 6px;
}

.sonno-payment-icon {
	display: inline-flex;
	align-items: center;
	height: 28px;
	border-radius: 4px;
	overflow: hidden;
}

.sonno-payment-icon svg {
	height: 28px;
	width: auto;
	display: block;
	border-radius: 4px;
}

/* ── Mobile ── */
@media (max-width: 767px) {
	.sonno-section {
		min-height: 0 !important;
		align-items: flex-end;
	}

	.sonno-inner {
		padding: 20px 16px;
		justify-content: center !important;
	}

	.sonno-card {
		width: 100% !important;
		max-width: 100% !important;
		border-radius: 16px 16px 0 0;
		padding: 28px 20px 32px;
		gap: 14px;
	}

	.sonno-card-title {
		font-size: 24px !important;
	}

	.sonno-feature-heading {
		font-size: 13px;
	}

	.sonno-feature-desc {
		font-size: 12px;
	}

	.sonno-card-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.sonno-btn {
		width: 100% !important;
		min-width: unset !important;
		justify-content: center;
	}

	.sonno-payment-icons {
		gap: 4px;
	}

	.sonno-payment-icon,
	.sonno-payment-icon svg {
		height: 22px;
	}
}

@media (max-width: 480px) {
	.sonno-card-title {
		font-size: 20px !important;
	}

	.sonno-feature {
		gap: 10px;
	}

	.sonno-feature-icon {
		width: 30px;
		height: 30px;
	}

	.sonno-feature-icon-emoji {
		font-size: 22px;
	}
}
