/* fonts: https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap */

/*
 * design.css — 525 Barbershop (s52)
 *
 * The design layer. Additive on top of Bootstrap + main.css: every page must
 * still render acceptably without this file. Colours come from tokens.css —
 * no --bs-* variable is defined or redefined here, and there are no raw hex
 * values; only gradients, shadows and overlays built from tokens.
 *
 * Carries forward the approved Phase 1 homepage: dark barbershop chrome,
 * Bebas Neue display type, warm surfaces, oversized Font Awesome icons and
 * gradient bands where photography would sit. The site has no photos, so the
 * photo-less devices (gradient bands, type-led heroes, icon badges, color
 * blocking) carry the design. Decorative art only — never a stand-in for
 * content.
 */

/* ---------------------------------------------------------------- Tokens */

:root {
	/* Every value below is derived from tokens.css variables. */
	--s52-font-heading: 'Bebas Neue', 'Inter', system-ui, sans-serif;
	--s52-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Page surfaces — a warm white page over the cream light band. */
	--s52-surface: #fffdfa;
	--s52-surface-2: var(--bs-light);
	--s52-surface-3: var(--bs-primary-bg-subtle);

	/* Shadows built from the dark token, so they soften with the palette. */
	--s52-shadow-sm: 0 4px 14px rgba(var(--bs-dark-rgb), .07);
	--s52-shadow-md: 0 12px 28px rgba(var(--bs-dark-rgb), .13);
	--s52-shadow-lg: 0 20px 44px rgba(var(--bs-dark-rgb), .20);

	/* The barbershop's dark chrome, used for the navbar and dark bands. */
	--s52-grad-dark: linear-gradient(150deg, var(--bs-dark) 0%, #2c211a 55%, #4a2a24 100%);
	--s52-grad-brand: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-dark) 100%);
	--s52-grad-gold: linear-gradient(120deg, var(--bs-secondary) 0%, var(--bs-primary) 100%);
}

/* The cream light band token lives in tokens.css but the page surface is
   warmer than --bs-body-bg; keep the two in step without touching --bs-*. */
body {
	background-color: var(--s52-surface);
	font-family: var(--s52-font-body);
}

/* ------------------------------------------------------ Typography */

h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
	font-family: var(--s52-font-heading);
	letter-spacing: .01em;
	line-height: 1.03;
	font-weight: 400; /* Bebas Neue has a single weight. */
}

.display-5, .display-6 {
	font-family: var(--s52-font-heading);
	letter-spacing: .015em;
	line-height: 1.02;
}

/* Big display headline used by the homepage hero and CTA bands. */
.s52-display {
	font-family: var(--s52-font-heading);
	font-weight: 400;
	line-height: 1.0;
	letter-spacing: .015em;
	font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
}

/* Eyebrow label — small caps-ish tracking, brand-emphasis colour so it is
   legible as text on the page surface behind it. */
.s52-eyebrow {
	font-family: var(--s52-font-body);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--bs-primary-text-emphasis);
}

/* On-dark accents — a heading tint and an eyebrow tint only. They are not
   the mechanism that makes body copy readable; data-bs-theme="dark" on the
   section root is. */
.s52-heading-on-dark {
	color: #fff;
}

.s52-eyebrow-on-dark {
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--bs-secondary-text-emphasis);
}

/* In dark mode the accent eyebrow needs the light-mode emphasis token to
   clear AA against the dark bands. */
[data-bs-theme="dark"] .s52-eyebrow-on-dark {
	color: var(--bs-secondary);
}

/* Gold accent text — e.g. the rating numeral, star rows. */
.s52-accent-text {
	color: var(--bs-secondary-text-emphasis);
}

[data-bs-theme="dark"] .s52-accent-text {
	color: var(--bs-secondary-text-emphasis);
}

/* -------------------------------------------------------- Navbar */

/*
 * The navbar is Bootstrap's bg-body-tertiary, which is !important — the bar
 * is recoloured through the variable that utility reads, plus the --bs-navbar-*
 * colour variables chosen FOR that dark bar.
 */
.s52-navbar {
	--bs-tertiary-bg-rgb: 23, 19, 16;
	--bs-navbar-color: rgba(243, 236, 227, .86);
	--bs-navbar-hover-color: #fff;
	--bs-navbar-active-color: var(--bs-secondary);
	--bs-navbar-brand-color: #fff;
	--bs-navbar-brand-hover-color: #fff;
	--bs-navbar-toggler-border-color: rgba(243, 236, 227, .38);
}

.s52-navbar .navbar-brand {
	font-family: var(--s52-font-heading);
	font-size: 1.625rem;
	letter-spacing: .06em;
	line-height: 1;
}

.custom-logo {
	height: 40px;
	width: auto;
}

.s52-navbar .nav-link {
	font-family: var(--s52-font-body);
	font-weight: 500;
	font-size: .9375rem;
}

/* Visible focus ring on the dark bar. */
.s52-navbar .nav-link:focus-visible,
.s52-navbar .navbar-brand:focus-visible,
.s52-navbar .navbar-toggler:focus-visible {
	outline: 3px solid var(--bs-secondary);
	outline-offset: 3px;
	border-radius: .25rem;
}

/* ------------------------------------------------- Hero (homepage) */

/* Type-led gradient hero — no photo. Photo-less design mode. */
.s52-hero {
	background: var(--s52-grad-dark);
	isolation: isolate;
}

.s52-hero__title {
	color: #fff;
}

/* The hero's supporting line sits on the dark gradient; lighten it. */
.s52-hero__lede {
	color: rgba(243, 236, 227, .82);
	max-width: 34rem;
}

/* A decorative gold hairline that separates the hero from the page. */
.s52-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 4px;
	background: var(--s52-grad-gold);
}

/* Recolour the outline-light button so it stops reading as a ghost of the
   dark hero — hover reverses to solid white on dark ink. */
.s52-hero .btn-outline-light {
	--bs-btn-color: #fff;
	--bs-btn-border-color: rgba(255, 255, 255, .55);
	--bs-btn-hover-bg: #fff;
	--bs-btn-hover-color: var(--bs-dark);
	--bs-btn-hover-border-color: #fff;
}

/* --------------------------------------------------- Inside-page hero */

/*
 * Structure, height, padding and scrim live in main.css (s52-page-hero).
 * Here we restyle type, eyebrow, lede and the __inner panel ONCE for the
 * whole site — never the section's height or padding.
 */
.s52-page-hero__title {
	font-family: var(--s52-font-heading);
	font-weight: 400;
	letter-spacing: .015em;
	line-height: 1.02;
}

.s52-page-hero__eyebrow {
	color: var(--bs-primary-text-emphasis);
}

.s52-page-hero--photo .s52-page-hero__eyebrow {
	color: var(--bs-secondary);
}

/* The plain variant sits on the cream band (main.css), so the eyebrow takes
   the brand emphasis colour for legibility. */
.s52-page-hero--plain .s52-page-hero__inner {
	max-width: 48rem;
	margin-inline: auto;
}

.s52-page-hero__lede {
	color: var(--bs-body-color);
	opacity: .85;
}

.s52-page-hero--photo .s52-page-hero__lede {
	color: #fff;
	opacity: .9;
}

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

/*
 * Standard vertical rhythm for a page band. Generous whitespace is one of
 * the site's design devices, so the padding is deliberately larger than the
 * Bootstrap default.
 */
.s52-section {
	padding-block: clamp(3.5rem, 8vw, 6rem);
}

/* Color blocking: alternate bands so adjacent sections read as distinct
   without imagery. */
.s52-band-alt {
	background-color: var(--s52-surface-2);
}

.s52-band-tint {
	background-color: var(--s52-surface-3);
}

/* A card/panel on a light band. */
.s52-panel {
	background-color: #fff;
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius-lg);
	box-shadow: var(--s52-shadow-sm);
}

/* --------------------------------------------------- Gradient bands */

/*
 * The photo-less stand-in for a full-bleed image section: a type-led
 * statement laid over a brand gradient. Structure mirrors the bleed pattern
 * but there is no photo and no scrim image — the gradient IS the backdrop.
 */
.s52-bleed {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 40vh;
	padding-block: clamp(3.5rem, 9vw, 7rem);
	background: var(--s52-grad-brand);
	color: #fff;
}

/* A soft warm vignette so the gradient does not read as flat. */
.s52-bleed::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(circle at 30% 20%, rgba(200, 149, 47, .22), transparent 60%);
	pointer-events: none;
}

.s52-bleed--dark {
	background: var(--s52-grad-dark);
}

.s52-bleed p {
	color: rgba(255, 255, 255, .88);
}

/* ----------------------------------------------- Trust stat tiles */

.s52-stat {
	background-color: #fff;
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius-lg);
	box-shadow: var(--s52-shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.s52-stat:hover,
.s52-stat:focus-within {
	border-color: var(--bs-secondary);
	box-shadow: var(--s52-shadow-md);
	transform: translateY(-3px);
}

.s52-stat:focus-visible {
	outline: 3px solid var(--bs-primary);
	outline-offset: 2px;
}

.s52-stat__icon {
	color: var(--bs-secondary-text-emphasis);
}

.s52-stat__value {
	font-family: var(--s52-font-heading);
	line-height: 1;
	letter-spacing: .01em;
}

/* -------------------------------------------------- Icon badges */

/* Oversized Font Awesome icons as section anchors / service markers. */
.s52-icon-badge {
	width: 3.75rem;
	height: 3.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--bs-border-radius);
	background-color: var(--bs-primary-bg-subtle);
	color: var(--bs-primary-text-emphasis);
	font-size: 1.5rem;
	line-height: 1;
}

.s52-icon-badge--gold {
	background-color: var(--bs-secondary-bg-subtle);
	color: var(--bs-secondary-text-emphasis);
}

.s52-icon-badge--lg {
	width: 5rem;
	height: 5rem;
	font-size: 2rem;
	border-radius: var(--bs-border-radius-lg);
}

/* ------------------------------------------------------- Cards */

/* The shared card lift used site-wide on interactive cards. */
.s52-card {
	background-color: #fff;
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius-lg);
	box-shadow: var(--s52-shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.s52-card:hover,
.s52-card:focus-within {
	border-color: var(--bs-primary);
	box-shadow: var(--s52-shadow-md);
	transform: translateY(-3px);
}

.s52-card:focus-visible {
	outline: 3px solid var(--bs-primary);
	outline-offset: 2px;
}

/* A featured card — the Special page offer. Gold border + a brand cap. */
.s52-card--featured {
	border-color: var(--bs-secondary-border-subtle);
	box-shadow: var(--s52-shadow-md);
}

.s52-card--featured {
	border-width: 2px;
}

/* -------------------------------------------------- Review cards */

.s52-stars {
	color: var(--bs-secondary-text-emphasis);
}

[data-bs-theme="dark"] .s52-stars {
	color: var(--bs-secondary);
}

.s52-rating-numeral {
	font-family: var(--s52-font-heading);
	font-size: clamp(3.5rem, 9vw, 5.5rem);
	line-height: 1;
	color: var(--bs-primary-text-emphasis);
}

.s52-avatar {
	width: 46px;
	height: 46px;
	flex-shrink: 0;
}

/* --------------------------------------------------- Offer block */

/* The 2-for-1 offer — a gold-accented call-out panel. */
.s52-offer {
	background-color: var(--bs-secondary-bg-subtle);
	border: 2px solid var(--bs-secondary-border-subtle);
	border-radius: var(--bs-border-radius-lg);
	box-shadow: var(--s52-shadow-md);
}

.s52-offer__badge {
	font-family: var(--s52-font-heading);
	font-size: clamp(2.5rem, 6vw, 3.75rem);
	line-height: 1;
	letter-spacing: .01em;
	color: var(--bs-primary-text-emphasis);
}

/* -------------------------------------------------- CTA bands */

.s52-cta {
	background: var(--s52-grad-dark);
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
}

.s52-cta::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 4px;
	background: var(--s52-grad-gold);
}

.s52-cta p {
	color: rgba(243, 236, 227, .85);
}

/* On the dark CTA the outline-light button reverses to solid white. */
.s52-cta .btn-outline-light {
	--bs-btn-color: #fff;
	--bs-btn-border-color: rgba(255, 255, 255, .55);
	--bs-btn-hover-bg: #fff;
	--bs-btn-hover-color: var(--bs-dark);
	--bs-btn-hover-border-color: #fff;
}

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

.s52-footer {
	background-color: var(--bs-dark);
	color: rgba(243, 236, 227, .8);
}

.s52-footer a:not(.btn) {
	color: rgba(243, 236, 227, .82);
	text-decoration: none;
	transition: color .16s ease;
}

.s52-footer a:not(.btn):hover,
.s52-footer a:not(.btn):focus-visible {
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.s52-footer a:focus-visible {
	outline: 3px solid var(--bs-secondary);
	outline-offset: 3px;
	border-radius: .25rem;
}

.s52-footer__brand {
	font-family: var(--s52-font-heading);
	font-size: 1.5rem;
	letter-spacing: .06em;
	color: #fff;
}

/* --------------------------------------------------- Reveal motion */

/*
 * Progressive enhancement: elements are visible by default. JS stamps
 * html.s52-js before the hidden state applies, so no-JS keeps everything
 * visible. Motion is neutralised under prefers-reduced-motion.
 */
.s52-reveal {
	opacity: 1;
}

html.s52-js .s52-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .55s ease, transform .55s ease;
}

html.s52-js .s52-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
	html.s52-js .s52-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.s52-card,
	.s52-stat {
		transition: none;
	}

	.s52-card:hover,
	.s52-card:focus-within,
	.s52-stat:hover,
	.s52-stat:focus-within {
		transform: none;
	}
}

/* ------------------------------------------- FAQ spacing only */

/*
 * The FAQ questions and colours are owned by the wp-faq-sets plugin.
 * design.css may only size and space .wpfaq — never set --wpfaq-accent,
 * --wpfaq-text or --wpfaq-border.
 */
.s52-faq .wpfaq {
	max-width: 52rem;
	margin-inline: auto;
}

/* --------------------------------------------------- Utilities */

/* A subtle gold rule used under section headings. */
.s52-rule {
	width: 4rem;
	height: 3px;
	border: 0;
	background: var(--s52-grad-gold);
	opacity: .9;
}
