/**
 * ProMen Barbers — front-end stylesheet.
 *
 * Design tokens (colors, type scale, spacing, the Inter font) come from
 * theme.json and are exposed as CSS custom properties by WordPress
 * (--wp--preset--color--*, --wp--preset--font-size--*, ...). This file only
 * adds layout, component, and interaction styling on top of those tokens.
 */

/* ---------- Reset ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	overflow-x: hidden;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
}

/* ---------- Accessibility ---------- */

:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}

/* WordPress core already injects a translated "Siirry sisältöön" skip
   link and its own minimal positioning CSS for block themes, so no
   custom skip-link markup or styling is needed here. */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Links & buttons ---------- */

a {
	text-underline-offset: 0.15em;
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

.wp-block-button__link {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8em 1.6em;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wp-block-buttons.is-content-justification-center {
	justify-content: center;
}

.wp-block-button.has-custom-width .wp-block-button__link {
	width: 100%;
}

.wp-block-button.is-style-text .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--cream);
	padding: 0;
	min-height: auto;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	font-weight: 400;
}

.wp-block-button.is-style-text .wp-block-button__link:hover,
.wp-block-button.is-style-text .wp-block-button__link:focus-visible {
	color: var(--wp--preset--color--gold);
}

/* Prominent pill callout for the site's main customer promise (walk-in
   service, no appointment needed), used in the hero. */
.walk-in-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	max-width: 100%;
	box-sizing: border-box;
	background: var(--wp--preset--color--brown-surface-light);
	border: 1px solid var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: 0.01em;
	padding: 0.65em 1.3em;
	border-radius: 999px;
	text-align: left;
}

.walk-in-badge::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: var(--wp--preset--color--gold);
	flex: none;
}

/* ---------- Site header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(200, 163, 85, 0.25);
	transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.site-header__logo {
	display: flex;
	align-items: center;
}

.site-header__logo img {
	height: 48px;
	width: auto;
	max-width: 190px;
}

.site-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--cream);
	font-weight: 500;
	padding: 0.6em 0.9em;
}

.site-nav .wp-block-navigation-item__content:hover,
.site-nav .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--gold);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
	padding: 0.5em 0;
}

/* ---------- Sections ---------- */

.section,
.section-tight {
	position: relative;
}

.section::before,
.section-tight::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(92%, 1200px);
	border-top: 1px solid rgba(200, 163, 85, 0.16);
}

.section {
	padding-block: clamp(2.25rem, 4.5vw, 4rem);
}

.section-tight {
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Hero ---------- */

.hero {
	padding-block: clamp(2.5rem, 6vw, 5rem);
	text-align: center;
}

.hero .wp-block-buttons {
	margin-top: 1rem;
}

.hero-logo {
	margin: 0 auto;
}

.hero-logo img {
	width: clamp(280px, 26vw, 380px);
	height: auto;
	margin: 0 auto;
}

/* ---------- Pricing menu ----------
 * A single quiet panel, not a card grid: one subdued brown surface holding
 * plain horizontal rows (name + price on one line, description beneath,
 * a hairline between rows) — no boxes, no shadows, no per-item borders.
 */

.menu-panel {
	width: 100%;
	max-width: 960px;
	margin-inline: auto;
	box-sizing: border-box;
	background: var(--wp--preset--color--brown-surface);
	border-radius: 12px;
	padding: clamp(1.75rem, 4vw, 3rem);
}

.menu-group + .menu-group {
	margin-top: 2rem;
}

.menu-group__heading {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.menu-group__heading::before {
	content: "";
	width: 2rem;
	height: 2px;
	flex: none;
	background: var(--wp--preset--color--gold);
}

.menu-group__heading h3 {
	margin: 0;
	color: var(--wp--preset--color--gold);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.price-row {
	padding-block: 1.25rem;
	border-bottom: 1px solid rgba(200, 163, 85, 0.2);
}

.menu-group .price-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.menu-group .price-row:first-child {
	padding-top: 0;
}

.price-row__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.35rem 1.25rem;
}

.price-row__name {
	margin: 0;
	min-width: 0;
	color: var(--wp--preset--color--cream);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	overflow-wrap: normal;
	word-break: normal;
}

.price-row__price {
	flex: none;
	margin: 0 0 0 auto;
	color: var(--wp--preset--color--gold);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	white-space: nowrap;
	text-align: right;
}

.price-row__desc {
	margin: 0.4rem 0 0;
	color: var(--wp--preset--color--taupe);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
	overflow-wrap: normal;
	word-break: normal;
}

/* ---------- FAQ (native <details>/<summary>, no JS) ---------- */

.wp-block-details {
	border-bottom: 1px solid rgba(200, 163, 85, 0.25);
	padding: 1.1rem 0;
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--cream);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	color: var(--wp--preset--color--gold);
	font-size: 1.4em;
	line-height: 1;
	flex: none;
}

.wp-block-details[open] summary::after {
	content: "\2013";
}

.wp-block-details p {
	margin-top: 0.75rem;
}

/* ---------- Reviews link-out card ---------- */

.reviews-card {
	background: var(--wp--preset--color--brown-surface);
	border: 1px solid rgba(200, 163, 85, 0.2);
	border-radius: 4px;
	padding: 2rem;
	text-align: center;
}

/* ---------- Contact section ----------
 * Same auto-fill stranding risk as the services grid: 3 cards can end up
 * 2+1 at intermediate widths. Going straight from 1 column to 3 (skipping
 * an in-between 2-column state) avoids a half-empty row entirely.
 */

.contact-grid {
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.contact-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.contact-card {
	background: var(--wp--preset--color--brown-surface-light);
	border: 1px solid rgba(200, 163, 85, 0.22);
	border-radius: 4px;
	padding: 1.6rem 1.5rem;
	min-width: 0;
}

.contact-card a {
	overflow-wrap: normal;
	word-break: keep-all;
	white-space: normal;
}

/* ---------- Footer ---------- */

.site-footer a {
	color: var(--wp--preset--color--taupe);
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--wp--preset--color--gold);
}

@media (max-width: 599px) {
	.site-header__logo img {
		height: 38px;
	}

	.hero {
		padding-block: 1.75rem;
	}

	.hero-logo img {
		width: clamp(220px, 68vw, 280px);
	}

	.walk-in-badge {
		font-size: var(--wp--preset--font-size--small);
		padding: 0.55em 1.05em;
		text-align: center;
	}

	.section {
		padding-block: 1.75rem;
	}

	.section-tight {
		padding-block: 1.25rem;
	}

	.menu-panel {
		padding: 1.25rem;
	}

	.menu-group + .menu-group {
		margin-top: 1.5rem;
	}

	.contact-card,
	.reviews-card {
		padding: 1.25rem;
	}
}

@media print {
	.site-header {
		display: none;
	}
}
