/* =============================================================
   Hair by Kristina: custom styles
   Loaded by the must-use plugin wp-content/mu-plugins/hbk-styles.php,
   so theme changes and updates can't remove it. Its Google Fonts
   (Italianno, Shadows Into Light) are loaded by that plugin too.
   After uploading a change: WP Super Cache > Delete Cache.
   ============================================================= */

/* -------------------------------------------------------------
   Design tokens
   Font sizes use clamp(smallest, fluid, largest): they grow
   smoothly with the screen width between the phone size and the
   desktop size, so no per-breakpoint font rules are needed.
   ------------------------------------------------------------- */
:root {
	/* Palette */
	--hbk-bg: #e3e4e0;
	--hbk-dusty-rose: #d4c8be;
	--hbk-matcha: #c7c7bb;
	--hbk-grass: #7f867b;
	--hbk-grass-dark: #6a7166;
	--hbk-shiplap: #bdb6aa;
	--hbk-ink: #4b5048;

	/* Fonts */
	--hbk-hand: 'Shadows Into Light', cursive;
	--hbk-script: 'Italianno', cursive;
	--hbk-clean: 'Fira Sans', sans-serif;

	/* Type scale: clamp(phone size, fluid middle, desktop size).
	   px rather than rem because the theme changes the root
	   font size at 482px, which would skew rem-based sizes. */
	--fs-small: clamp(14px, 13px + 0.25vw, 16px);
	--fs-nav: clamp(16px, 15px + 0.3vw, 20px);
	--fs-body: clamp(18px, 15.75px + 0.6vw, 24px);
	--fs-large: clamp(20px, 16.8px + 0.85vw, 30px);
	--fs-script-md: clamp(28px, 20.8px + 1.9vw, 44px);
	--fs-script-lg: clamp(36px, 25.6px + 2.8vw, 60px);
	--fs-script-xl: clamp(44px, 30.4px + 3.6vw, 72px);

	/* Homepage step cards */
	--step-size: clamp(200px, 22vw, 290px);
}

/* -------------------------------------------------------------
   Base
   ------------------------------------------------------------- */
body {
	background-color: var(--hbk-bg);
	font-family: var(--hbk-hand);
}
h1, li {
	font-family: var(--hbk-hand);
}
h1 {
	font-size: clamp(32px, 26px + 1.6vw, 48px);
}
h2 {
	font-family: var(--hbk-script) !important;
	font-size: var(--fs-script-lg) !important;
}
p {
	font-size: var(--fs-body);
}
.tb-grid-column {
	font-size: var(--fs-large);
}
.site-info {
	display: none; /* hides "Proudly powered by WordPress" */
}

/* Palette helpers (add as "Additional CSS class" on a block) */
.main { background-color: var(--hbk-bg); }
.dusty-rose { background-color: var(--hbk-dusty-rose); }
.matcha { background-color: var(--hbk-matcha); }
.grass { background-color: var(--hbk-grass); }
.shiplap { background-color: var(--hbk-shiplap); }
.centered { text-align: center; }

/* -------------------------------------------------------------
   Header: logo, menu, booking buttons
   ------------------------------------------------------------- */
.header-container {
	margin: 0;
}
.top-menu {
	padding-top: 30px;
}
.top-menu span {
	font-size: var(--fs-nav);
}
.wp-block-navigation .wp-block-navigation-link {
	margin: 0 1vw;
}

/* Booking buttons: "Returning Guest? Book Online" + "New Guest? Start Here" */
.header-returning-column {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
}
.header-returning-column .booking-btn {
	margin: 0 !important;
	text-align: center !important;
}
.header-returning-column .booking-btn .tb-button__link {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 16px;
	border: 2px solid var(--hbk-grass);
	border-radius: 6px;
	font-family: var(--hbk-hand);
	font-size: 17px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.header-returning-column .booking-btn--primary .tb-button__link {
	background-color: var(--hbk-grass) !important;
	color: #fff !important;
}
.header-returning-column .booking-btn--primary .tb-button__link:hover {
	background-color: var(--hbk-grass-dark) !important;
	border-color: var(--hbk-grass-dark);
}
.header-returning-column .booking-btn--secondary .tb-button__link {
	background-color: transparent !important;
	color: var(--hbk-ink) !important;
}
.header-returning-column .booking-btn--secondary .tb-button__link:hover {
	background-color: var(--hbk-grass) !important;
	color: #fff !important;
}

/* Desktop: give the menu more room */
@media (min-width: 1200px) {
	.header-menu-column {
		flex-basis: 60% !important;
	}
}

/* Tablet and phone: centered header, buttons side by side */
@media (max-width: 781px) {
	.wp-block-column {
		margin: 0 !important;
	}
	.header-image {
		display: block;
		width: 15%;
		margin: 0 auto;
	}
	.header-image .size-thumbnail {
		margin: 0;
		float: left;
	}
	.top-menu {
		padding-top: 0;
	}
	.top-menu ul {
		justify-content: center;
	}
	.header-returning-column {
		flex-direction: row;
		padding: 0 16px;
	}
	.header-returning-column .booking-btn {
		flex: 1 1 0;
		display: flex;
	}
	.header-returning-column .booking-btn .tb-button__link {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		padding: 10px 8px;
		font-size: 16px;
	}
}

/* Phone: logo left, hamburger right, slide-out menu */
@media (max-width: 599px) {
	.site-main {
		padding-top: 0;
	}
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .header-image-column {
		flex-grow: 0;
		flex-basis: 49% !important;
	}
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .header-menu-column {
		flex-grow: 0;
		flex-basis: 40% !important;
		padding-top: 3vw !important;
	}
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .header-returning-column {
		flex-grow: 0;
		flex-basis: 100% !important;
	}
	.header-image .size-thumbnail {
		width: 15vw;
		height: 15vw;
		margin-left: -15vw;
	}
	/* Booking buttons become a bar fixed to the bottom of the screen,
	   so booking is always one tap away. Not on New Guest (page 243):
	   a fixed bar would sit over the form and the phone keyboard. */
	body:not(.page-id-243) .header-returning-column {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		margin: 0 !important;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) !important;
		background: var(--hbk-bg);
		box-shadow: 0 -2px 10px rgba(75, 80, 72, 0.15);
	}
	/* Labels break into two even lines: "Returning Guest? / Book Online" */
	body:not(.page-id-243) .header-returning-column .booking-btn .tb-button__link {
		margin: 0;
		min-height: 50px;
		padding: 6px 8px;
		font-size: 15px;
		line-height: 1.15;
		text-wrap: balance;
	}
	/* Out of the way while the slide-out menu is open */
	.has-modal-open .header-returning-column {
		display: none !important;
	}
	/* Room at the bottom of the page so the bar doesn't cover the footer */
	body:not(.page-id-243) {
		padding-bottom: calc(70px + env(safe-area-inset-bottom));
	}
	.wp-block-navigation__responsive-container-open svg,
	.wp-block-navigation__responsive-container-close svg {
		width: 7vw;
		height: 7vw;
	}
	.top-menu {
		justify-content: right !important;
	}
	.top-menu button:hover,
	.top-menu button:visited {
		background-color: var(--hbk-dusty-rose);
	}
	.wp-block-navigation__responsive-container.is-menu-open {
		background-color: var(--hbk-bg) !important;
		margin-left: 65vw;
		height: 90vw;
	}
	.wp-block-navigation__responsive-container-content ul {
		position: absolute;
		right: 0;
		z-index: 2;
	}
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.wp-social-link-facebook,
.wp-social-link-instagram,
.wp-social-link-yelp {
	background-color: var(--hbk-dusty-rose) !important;
}

/* Address, phone and email links (column has class "footer-contact") */
.footer-contact a {
	color: inherit;
	border-bottom: none !important; /* theme adds a blue border to links */
	text-decoration: underline;
	text-decoration-color: var(--hbk-grass);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.footer-contact a:hover {
	color: var(--hbk-grass-dark);
	text-decoration-thickness: 2px;
}
/* The theme spaces every block in a column ~20px apart; keep the
   phone and email lines together instead */
.wp-block-column.footer-contact > .footer-contact__line {
	margin: 0;
}
/* Address block: same visual gap above the phone line as between
   phone and email (the links carry 8px of tap padding) */
.wp-block-column.footer-contact > .wp-block-group {
	margin-bottom: 8px;
}
/* Third footer column: hours with the social icons underneath.
   The hours list is the shared "Hours" synced pattern (.hbk-hours),
   also used on the homepage.
   Leave the icons center-aligned in the editor; this left-aligns them
   without the extra gap the editor's "align left" adds. */
.wp-block-column.footer-hours > *,
.wp-block-column.footer-hours .footer-heading {
	margin: 0;
}
.wp-block-column.footer-hours .hbk-hours {
	margin: 0 0 16px;
	text-align: left;
}
.wp-block-column.footer-hours .wp-block-social-links {
	justify-content: flex-start;
}
.footer-contact .footer-contact__line a {
	display: inline-block;
	padding: 8px 0; /* bigger tap target on phones */
	overflow-wrap: anywhere;
}
/* Space below the footer: the theme's own footer is switched off
   (hide-site-footer) but still kept 60px of padding, and the page and
   footer columns each added ~30px more. Leaves the container's 25px. */
.hide-site-footer .site-footer {
	display: none;
}
.site-main:has(.footer-hours) {
	padding-bottom: 0;
}
.tb-container:has(.footer-hours) > .wp-block-columns:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------
   Homepage
   ------------------------------------------------------------- */
.wp-block-pullquote p {
	font-family: var(--hbk-script) !important;
	font-size: var(--fs-script-lg);
}
.wp-block-pullquote cite {
	font-family: var(--hbk-script) !important;
	font-size: var(--fs-script-md);
}
/* Quote refresh: narrower balanced lines, decorative quote mark,
   small-caps attribution between hairlines */
.wp-block-pullquote {
	max-width: 760px;
	margin: 0 auto !important;
	padding: clamp(40px, 6vw, 72px) 16px !important;
	border: none;
}
.wp-block-pullquote blockquote {
	margin: 0;
}
.wp-block-pullquote blockquote::before {
	content: "\201C";
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(90px, 12vw, 140px);
	line-height: 0.6;
	color: var(--hbk-grass);
	opacity: 0.5;
	margin-bottom: 0.15em;
}
.wp-block-pullquote blockquote p {
	line-height: 1.15;
	color: #3a3d38;
	text-wrap: balance;
	margin: 0;
}
.wp-block-pullquote blockquote cite {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: clamp(14px, 2vw, 22px);
	font-family: var(--hbk-clean) !important;
	font-size: 13px;
	font-style: normal;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--hbk-ink);
	opacity: 0.8;
}
.wp-block-pullquote blockquote cite::before,
.wp-block-pullquote blockquote cite::after {
	content: "";
	width: 40px;
	height: 1px;
	background: var(--hbk-grass);
}
.hour-block p,
.hour-block ~ .hbk-hours {
	font-size: var(--fs-large);
}
.hour-block ~ .hbk-hours {
	margin-top: 0;
	text-align: center;
}
.profile-image {
	width: 100%;
}

/* Step cards: wrap and center at any width, so no per-card margin
   tweaks are needed (3 + 2 on desktop/tablet, stacked on phones) */
.tb-grid:has(> .tb-grid-column > .homepage-steps) {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(12px, 2vw, 24px);
}
.tb-grid:has(> .tb-grid-column > .homepage-steps) > .tb-grid-column {
	flex: 0 0 auto;
	width: auto !important;
	margin: 0 !important;
}
.homepage-steps .tb-button__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: var(--step-size) !important;
	height: var(--step-size) !important;
	padding: 16px;
	box-sizing: border-box;
}
.homepage-steps .tb-button__content {
	font-size: clamp(16px, 14px + 0.5vw, 22px);
	line-height: 1.2;
}
.homepage-steps .tb-button__content strong {
	display: block;
	margin-bottom: 0.4em;
	font-size: clamp(24px, 18px + 1.6vw, 40px);
}
.homepage-steps .tb-button__content br {
	display: none;
}
/* Hover lift on the whole card, so it also works on cards that
   aren't links (Step 4). Matches the Toolset button hover style. */
.homepage-steps:hover .tb-button__link {
	background-color: var(--hbk-matcha);
	box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
	color: #000;
}
/* Step 4 is information only: no click, but keeps the hover */
.step-4 .tb-button__link {
	pointer-events: none;
	cursor: default;
}

@media (max-width: 781px) {
	.profile-image {
		padding: 25px;
	}
}

/* -------------------------------------------------------------
   About
   ------------------------------------------------------------- */
.about-image img {
	width: 50vw !important;
}
@media (min-width: 1200px) {
	.about-image img {
		width: 45vw !important;
		max-width: 800px !important;
		padding: 25px;
	}
}
@media (min-width: 782px) and (max-width: 1199px) {
	.about-image {
		width: 50vw !important;
	}
}
@media (max-width: 781px) {
	.about-image {
		width: 100% !important;
	}
}

/* -------------------------------------------------------------
   Services
   ------------------------------------------------------------- */
.pricing-header p {
	font-family: var(--hbk-script) !important;
	font-size: var(--fs-script-xl) !important;
}
.services {
	font-size: var(--fs-body);
}
.service-row .tb-grid {
	grid-row-gap: 0;
}

/* Section titles ("Haircut & Style") run vertically beside the list */
@media (min-width: 600px) {
	.vertical-text {
		writing-mode: vertical-rl;
		text-align: center;
	}
	.vertical-text-box {
		align-content: center !important;
	}
}
@media (max-width: 599px) {
	.vertical-text {
		padding-top: 0 !important;
	}
}

/* Services as a salon menu: name ..... price, description underneath,
   "With a Haircut" as an indented sub-line. Replaces the hover flip cards
   on every screen size. Scoped to .service-row so the Kind Words
   reviews (also a Toolset list) are not affected. */

/* No flipping anywhere: front and back stack normally */
.flip-card .flip-card-inner,
.flip-card-mini .flip-card-inner {
	transform: none !important;
	transition: none;
	height: auto;
}
.flip-card-front,
.flip-card-back {
	position: static !important;
	height: auto !important;
	backface-visibility: visible;
	transform: none !important;
	background: transparent !important;
}
/* Leftover empty back panels / columns from the old flip layout */
.service-row .wpv-block-loop-item > .flip-card-back:empty,
.service-row .wpv-block-loop-item > .tb-grid > .tb-grid-column:empty {
	display: none !important;
}

/* Each row: name column stretches, price sits at the right */
.service-row .wpv-block-loop-item > .tb-grid {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
}
.service-row .wpv-block-loop-item > .tb-grid > .tb-grid-column:first-child {
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0;
}
.service-row .wpv-block-loop-item > .tb-grid > .tb-grid-column:not(:first-child) {
	flex: 0 0 auto;
	width: auto !important;
	white-space: nowrap;
}
.flip-card-inner {
	display: block !important; /* was a 2-column grid for the flip */
}

/* Dotted leader from the name to the price */
.flip-card-front,
.service-row .wpv-block-loop-item > .tb-grid > .tb-grid-column:first-child > p.services {
	display: flex;
	align-items: baseline;
}
.flip-card-front::after,
.service-row .wpv-block-loop-item > .tb-grid > .tb-grid-column:first-child > p.services::after {
	content: "";
	flex: 1 1 auto;
	min-width: 24px;
	margin-left: 10px;
	border-bottom: 2px dotted var(--hbk-grass);
	opacity: 0.45;
	transform: translateY(-0.3em);
}

/* Description under the name */
.flip-card-back .services-description p {
	margin: 4px 0 0;
	font-family: var(--hbk-clean);
	font-size: var(--fs-small) !important;
	line-height: 1.4;
	color: var(--hbk-ink);
	opacity: 0.85;
	background: transparent !important;
}

/* "With a Haircut" sub-line: smaller and indented */
.service-row .wpv-block-loop-item > .tb-grid + .tb-grid {
	margin-top: 6px;
}
.service-row .wpv-block-loop-item > .tb-grid > .tb-grid-column:first-child > p.services {
	margin: 0;
	padding-left: 1.5em !important;
	font-size: calc(var(--fs-body) * 0.85);
	opacity: 0.85;
}
.service-row .wpv-block-loop-item > .tb-grid + .tb-grid > .tb-grid-column:not(:first-child) {
	font-size: calc(var(--fs-large) * 0.85);
	opacity: 0.85;
}

/* Toolset adds ~17-25px under every field and grid; remove it so
   spacing is controlled here */
.service-row .wpv-block-loop-item .tb-field,
.service-row .wpv-block-loop-item > .tb-grid {
	margin: 0 !important;
}

/* Breathing room and a soft divider between services (each service
   sits in its own column, so the divider goes on the column) */
.service-row .wpv-block-loop-item {
	padding: 14px 0;
}
.service-row .tb-grid-column:has(> .wpv-block-loop-item) + .tb-grid-column:has(> .wpv-block-loop-item) {
	border-top: 1px solid rgba(127, 134, 123, 0.25);
}

/* -------------------------------------------------------------
   New Guest
   ------------------------------------------------------------- */
.appointment-header h1 {
	font-family: var(--hbk-script) !important;
	font-size: var(--fs-script-xl) !important;
}
.green-shit img {
	max-height: 9vw !important;
}
.new-customer-submit {
	padding: 10px !important;
	font-family: var(--hbk-hand) !important;
	background-color: var(--hbk-dusty-rose) !important;
	color: #000 !important;
}
