/*
Theme Name: Allure 13
Theme URI: https://allure13.com/
Author: Two Eleven Jay LLC
Author URI: https://211j.com/
Description: The Allure 13 Salon site. A small block theme, black and white around her photography, built to WCAG 2.2 AA.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: allure13
*/

/*
 * Everything theme.json cannot express. Colors only from the palette, so the contrast table in
 * docs/NEW-SITE.md stays true: #111111 and #ffffff (18.9:1), #595959 on white (7.0:1),
 * #595959 on #f5f3f0 (6.3:1), #b5b5b5 on #111111 (9.2:1), field borders #767676 (4.5:1).
 * ops/build/contrast_check.py prints the full table.
 */

/* ---------- Base ---------- */

html {
	scroll-padding-top: 1.5rem;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	height: auto;
	max-width: 100%;
}

/* One focus style everywhere: a thick ring that is never hidden and works on black and white. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

/* Visually hidden, still read by screen readers (table headers, form hints). */
.a13-sr-only,
.a13-price-table thead {
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.a13-eyebrow {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

/* ---------- Header ---------- */

.a13-header {
	border-bottom: 1px solid #e3e0dc;
}

.a13-logo {
	display: inline-block;
	line-height: 0;
	padding: 0.25rem 0;
}

.a13-logo img {
	height: auto;
	width: 168px;
}

@media (min-width: 782px) {
	.a13-logo img {
		width: 200px;
	}
}

/* Menu links: generous targets (2.5.8 asks for 24px; these are 44px tall). */
.a13-header .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.15rem;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.a13-header .wp-block-navigation-item__content:hover,
.a13-header .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: currentColor;
}

.a13-header .a13-nav-book > .wp-block-navigation-item__content {
	border: 1px solid currentColor;
	padding: 0 1.1rem;
}

.a13-header .a13-nav-book > .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* The mobile menu button and the close button: 44px targets, visible text-free icons with labels from core. */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 0.5rem;
	font-size: 1.125rem;
}

/* ---------- Hero (cover block over a still from her video) ---------- */

.a13-hero {
	min-height: min(82vh, 760px);
}

/* The overlay guarantees text contrast wherever the text can sit (checked against the real
 * pixels by ops/build/contrast_check.py): on phones the text spans the full width, so the
 * whole image is dimmed evenly; from tablet up the text sits left and the overlay fades out
 * towards the hair on the right. */
.a13-hero .wp-block-cover__inner-container {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	width: 100%;
}

.a13-hero-text {
	max-width: 34rem;
}

.a13-hero .wp-block-cover__background {
	background: rgba(17, 17, 17, 0.72) !important;
	opacity: 1 !important;
}

@media (min-width: 782px) {
	.a13-hero .wp-block-cover__background {
		background: linear-gradient(90deg, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.82) 60%, rgba(17, 17, 17, 0.2) 85%, rgba(17, 17, 17, 0.1) 100%) !important;
	}

	/* The text column ends before 60% of the width, where the overlay is still 82%. */
	.a13-hero-text {
		max-width: min(34rem, 55vw);
	}
}

/* ---------- Buttons ---------- */

.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

/* Outline buttons on black: white border, white text; inverted on hover. */
.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
}

.is-style-outline > .wp-block-button__link:hover,
.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.has-contrast-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--base);
}

.has-contrast-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--base);
}

/* ---------- Service tiles and photos ---------- */

.a13-tiles .wp-block-image img,
.a13-team-card .wp-block-image img,
.a13-gallery .wp-block-image img,
.a13-service-photo img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}

.a13-tiles h3 a,
.a13-team-card h3 a {
	text-decoration: none;
}

.a13-tiles h3 a:hover {
	text-decoration: underline;
}

.a13-gallery {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (min-width: 782px) {
	.a13-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

.a13-gallery .wp-block-image {
	margin: 0;
}

/* ---------- Price lists (tables, so service and price stay paired for screen readers) ---------- */

.a13-price-table table {
	border-collapse: collapse;
	width: 100%;
}

.a13-price-table td {
	border: 0;
	border-bottom: 1px solid #d9d5d0;
	padding: 0.9rem 0;
	vertical-align: baseline;
}

.a13-price-table td:first-child {
	font-weight: 500;
	letter-spacing: 0.06em;
	padding-right: 1rem;
	text-transform: uppercase;
	font-size: 0.9375rem;
}

.a13-price-table td:last-child {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: lining-nums tabular-nums;
}

.a13-price-table figure,
figure.a13-price-table {
	margin: 0;
}

.a13-service-row + .a13-service-row {
	margin-top: var(--wp--preset--spacing--60);
}

@media (min-width: 782px) {
	.a13-service-row.is-reversed > .wp-block-column:first-child {
		order: 2;
	}
}

.a13-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	list-style: none;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
}

.a13-jump a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	font-size: 0.875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 500;
}

/* ---------- Testimonials ---------- */

.a13-quotes .wp-block-quote {
	margin: 0;
	padding: 0;
}

.a13-quotes .wp-block-quote p {
	line-height: 1.4;
}

.a13-quotes .wp-block-quote p::before {
	content: "\201C";
}

.a13-quotes .wp-block-quote p::after {
	content: "\201D";
}

/* ---------- Hours ---------- */

.a13-hours {
	margin: 0;
}

.a13-hours div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid rgba(127, 127, 127, 0.35);
}

.a13-hours dt,
.a13-hours dd {
	margin: 0;
}

/* ---------- Policies ---------- */

.a13-policy h2 {
	font-size: var(--wp--preset--font-size--large);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-top: var(--wp--preset--spacing--50);
}

/* ---------- Contact form (WPForms, base styles only) ---------- */

.a13-form .wpforms-container {
	margin: 0 !important;
}

.a13-form .wpforms-field-label,
.a13-form .wpforms-field-sublabel {
	font-weight: 500 !important;
	font-size: 1rem !important;
	color: var(--wp--preset--color--contrast) !important;
}

.a13-form input[type="text"],
.a13-form input[type="email"],
.a13-form input[type="tel"],
.a13-form textarea {
	background: #fff !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 0 !important;
	color: var(--wp--preset--color--contrast) !important;
	font: inherit !important;
	min-height: 48px;
	padding: 0.6rem 0.8rem !important;
	max-width: 100% !important;
	width: 100% !important;
}

.a13-form input:focus,
.a13-form textarea:focus {
	outline: 3px solid var(--wp--preset--color--contrast) !important;
	outline-offset: 2px;
	box-shadow: none !important;
}

.a13-form .wpforms-required-label,
.a13-form label.wpforms-error,
.a13-form em.wpforms-error {
	color: #a4161a !important;
}

.a13-form button[type="submit"] {
	background: var(--wp--preset--color--contrast) !important;
	border: 1px solid var(--wp--preset--color--contrast) !important;
	border-radius: 0 !important;
	color: #fff !important;
	font: 500 0.9375rem/1.3 var(--wp--preset--font-family--body) !important;
	letter-spacing: 0.16em !important;
	min-height: 48px !important;
	padding: 0.85rem 1.75rem !important;
	text-transform: uppercase;
	height: auto !important;
}

.a13-form button[type="submit"]:hover,
.a13-form button[type="submit"]:focus-visible {
	background: #fff !important;
	color: var(--wp--preset--color--contrast) !important;
}

.a13-form .wpforms-confirmation-container-full {
	background: var(--wp--preset--color--surface) !important;
	border: 1px solid var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--contrast) !important;
}

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

.a13-footer a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.a13-footer .a13-logo img {
	width: 180px;
}

.a13-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.a13-footer-links li {
	margin: 0;
}

.a13-footer-links a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
}

.a13-footer .wp-block-social-links .wp-social-link a {
	padding: 0.5rem;
}

/* ---------- Hidden payments stub (Book Now page): kept out of sight until payments are chosen ---------- */

.a13-payments-stub {
	display: none !important;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}
