/*
Theme Name: Best Wax & Lash
Theme URI: https://bestwaxlash.com
Description: Custom block theme for Best Wax & Lash, a beauty and medical aesthetics studio in Englewood, Colorado.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Author: Adam Guitouni
License: GPL-2.0-or-later
Text Domain: bestwaxlash
*/

/* Small eyebrow labels above headings */
.bwl-eyebrow {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-weight: 500;
}

/* Uppercase small text (trust strip, captions) */
.bwl-caps {
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Outline button on dark backgrounds */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--mauve);
	border-color: var(--wp--preset--color--mauve);
	color: var(--wp--preset--color--white);
}

/* Text-link style button ("Learn more") */
.wp-block-button.is-style-bwl-text > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--bronze);
	padding-left: 0;
	padding-right: 0;
	text-decoration: underline;
	text-underline-offset: 0.35em;
}
.wp-block-button.is-style-bwl-text > .wp-block-button__link:hover {
	background: transparent;
	color: #5e4528;
}

/* Images in cards and splits fill their box */
.bwl-cover-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.bwl-card {
	height: 100%;
}
.bwl-card .bwl-cover-img img {
	aspect-ratio: 4 / 3;
}

/* Price menu rows */
.bwl-menu-row {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.bwl-menu-row .bwl-price {
	min-width: 7rem;
	text-align: right;
}

/* FAQ (Details block) */
.wp-block-details summary {
	cursor: pointer;
	font-size: 1.1875rem;
	font-weight: 400;
	color: var(--wp--preset--color--espresso);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 44px;
	align-items: center;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.75rem;
	color: var(--wp--preset--color--bronze);
	line-height: 1;
}
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details > :not(summary) { margin-top: 1rem; }

/* Header */
.bwl-header .wp-block-site-title a { text-decoration: none; color: inherit; }
.bwl-header .wp-block-navigation a { text-decoration: none; }
.bwl-header .wp-block-navigation a:hover { color: var(--wp--preset--color--mauve); }

/* Map embed */
.bwl-map iframe {
	width: 100%;
	min-height: 420px;
	height: 100%;
	border: 0;
	display: block;
	filter: grayscale(0.35) sepia(0.12);
}

/* Sticky "Book Now" bar on phones only */
.bwl-mobile-book { display: none; }
@media (max-width: 781px) {
	.bwl-mobile-book {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		box-shadow: 0 -6px 20px rgba(34, 28, 25, 0.12);
	}
	.bwl-mobile-book .wp-block-button { flex: 1 1 0; }
	.bwl-mobile-book .wp-block-button__link { width: 100%; text-align: center; }
	body { padding-bottom: 72px; }
	.bwl-hide-mobile { display: none !important; }
	.bwl-menu-row .bwl-price { text-align: left; }
}

/* Anchor jumps clear the top of the screen a little */
:where(section, .wp-block-group)[id] { scroll-margin-top: 1.5rem; }

/* Hero photo fills its column */
.bwl-hero .wp-block-columns { align-items: stretch !important; }
.bwl-hero-img { height: 100%; margin: 0; }
.bwl-hero-img img { min-height: 560px; }
@media (max-width: 781px) {
	.bwl-hero-img img { min-height: 0; aspect-ratio: 4 / 3; }
	.bwl-hero .wp-block-column:first-child { padding-right: 0 !important; }
}

/* Full-width sections sit flush against each other */
.wp-site-blocks > * { margin-block-start: 0; }
.bwl-sections > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.bwl-card { padding: 0 !important; }
footer.wp-block-template-part a { text-decoration: none; }
footer.wp-block-template-part a:hover { text-decoration: underline; }
.bwl-sections > .alignfull {
	padding-left: var(--wp--style--root--padding-left) !important;
	padding-right: var(--wp--style--root--padding-right) !important;
}
@media (max-width: 781px) {
	.bwl-hero .wp-block-column:first-child { padding-top: 3rem !important; padding-bottom: 2.5rem !important; }
	.bwl-hero .wp-block-column:last-child { margin-left: calc(var(--wp--style--root--padding-left) * -1); margin-right: calc(var(--wp--style--root--padding-right) * -1); }
}

/* Brand mark in the header */
.bwl-logo-mark { margin: 0; flex-shrink: 0; }
.bwl-logo-mark img { border-radius: 50%; display: block; }
@media (max-width: 480px) { .bwl-header .wp-block-site-title { font-size: 1.25rem !important; } .bwl-logo-mark img { width: 42px !important; height: 42px !important; } }
