/* =========================================================================
   Salon Theme — Global styles
   Container, sections, headings, buttons, utilities and animations.
   ========================================================================= */

/* ---------- Layout ---------- */
.salon-container,
.salon-wrap {
	width: 100%;
	max-width: calc(var(--salon-container) + (var(--salon-gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--salon-gutter);
}

.salon-content {
	overflow: hidden;
}

.salon-section {
	position: relative;
	padding-block: var(--salon-section-pad);
}

/* ---------- Section headings ---------- */
.salon-head {
	margin: 0 0 35px;
	text-align: center;
}

.salon-head__ornament {
	display: block;
	width: 38px;
	height: auto;
	margin: 0 auto 6px;
	color: var(--salon-accent);
}

.salon-head__title {
	margin: 0;
	color: var(--salon-heading);
	font-family: var(--salon-font-heading);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.2;
}

.salon-head__text {
	margin: 10px 0 0;
	color: var(--salon-text);
	font-size: 16px;
	line-height: 1.5;
}

/* Legacy heading helper (inner pages). */
.salon-section__head {
	max-width: 760px;
	margin-bottom: 35px;
}

.salon-section__head--center {
	margin-inline: auto;
	text-align: center;
}

.salon-section__label {
	display: inline-block;
	color: var(--salon-accent);
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.salon-section__title {
	margin: 6px 0 10px;
	font-size: 30px;
}

.salon-section__title-accent {
	color: var(--salon-accent);
}

.salon-section__description {
	margin: 0;
	color: var(--salon-text);
}

/* ---------- Buttons ---------- */
.salon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: var(--salon-radius);
	font-family: var(--salon-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--salon-transition), color var(--salon-transition), border-color var(--salon-transition);
}

/* Solid black (e.g. "Shop now") */
.salon-btn--dark,
.salon-btn--primary {
	background: var(--salon-dark);
	color: #fff;
}

.salon-btn--dark:hover,
.salon-btn--dark:focus,
.salon-btn--primary:hover,
.salon-btn--primary:focus {
	background: var(--salon-accent);
	color: #fff;
}

/* Outline with gold corner accents */
.salon-btn--corner,
.salon-btn--ghost,
.salon-btn--outline {
	min-width: 140px;
	padding: 13px 26px;
	background: transparent;
	border-color: currentColor;
	border-radius: 0;
	color: var(--salon-heading);
	font-size: 13px;
}

.salon-btn--corner::before,
.salon-btn--corner::after,
.salon-btn--ghost::before,
.salon-btn--ghost::after,
.salon-btn--outline::before,
.salon-btn--outline::after {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	border-style: solid;
	transition: border-width var(--salon-transition);
}

.salon-btn--corner::before,
.salon-btn--ghost::before,
.salon-btn--outline::before {
	top: 3px;
	right: 3px;
	border-width: 0 7px 7px 0;
	border-color: transparent var(--salon-accent) transparent transparent;
}

.salon-btn--corner::after,
.salon-btn--ghost::after,
.salon-btn--outline::after {
	bottom: 3px;
	left: 3px;
	border-width: 7px 0 0 7px;
	border-color: transparent transparent transparent var(--salon-accent);
}

.salon-btn--corner:hover::before,
.salon-btn--corner:hover::after,
.salon-btn--ghost:hover::before,
.salon-btn--ghost:hover::after,
.salon-btn--outline:hover::before,
.salon-btn--outline:hover::after {
	border-width: 0 11px 11px 0;
}

.salon-btn--corner:hover::after,
.salon-btn--ghost:hover::after,
.salon-btn--outline:hover::after {
	border-width: 11px 0 0 11px;
}

.salon-btn--corner:hover,
.salon-btn--corner:focus,
.salon-btn--ghost:hover,
.salon-btn--outline:hover {
	color: var(--salon-accent);
}

/* Light variant for dark backgrounds */
.salon-btn--light {
	color: #fff;
}

.salon-btn--light:hover,
.salon-btn--light:focus {
	color: #fff;
	border-color: var(--salon-accent);
}

/* Full-width thin outline (product "Add to cart") */
.salon-btn--line {
	width: 100%;
	padding: 8px 0 10px;
	background: transparent;
	border-color: var(--salon-border-strong);
	border-radius: 0;
	color: var(--salon-heading);
	font-family: var(--salon-font-heading);
	font-size: 14px;
	text-transform: capitalize;
}

.salon-btn--line:hover,
.salon-btn--line:focus {
	background: var(--salon-heading);
	border-color: var(--salon-heading);
	color: #fff;
}

.salon-btn--block {
	display: flex;
	width: 100%;
}

.salon-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* Button flanked by horizontal rules ("— EXPLORE —") */
.salon-ruled {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-top: 45px;
}

.salon-ruled::before,
.salon-ruled::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #141414;
}

/* ---------- Icon sizing helper ---------- */
.salon-icon {
	flex-shrink: 0;
	vertical-align: middle;
}

/* ---------- Stars ---------- */
.salon-stars {
	display: inline-flex;
	gap: 0.15rem;
	color: var(--salon-accent);
}

.salon-stars__item {
	line-height: 0;
}

.salon-stars__item .salon-icon {
	fill: transparent;
}

.salon-stars__item.is-filled .salon-icon {
	fill: currentColor;
}

/* ---------- Reveal animation ---------- */
.salon-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.salon-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.salon-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Helpers ---------- */
.salon-text-accent {
	color: var(--salon-accent);
}

.salon-muted {
	color: var(--salon-text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
	:root {
		--salon-gutter: 20px;
		--salon-section-pad: 60px;
	}
}

@media (max-width: 600px) {
	.salon-head__title {
		font-size: 26px;
	}

	.salon-ruled {
		gap: 16px;
	}
}
