/*
Theme Name: Blanche Nail Boutique
Theme URI: https://sna.catanhientrang.vn/
Author: Blanche Nail Boutique
Description: A lightweight, accessible theme for Blanche Nail Boutique. The booking funnel is owned by Salon Booking Suite and is deliberately left alone: this theme never renders its header, footer or scripts on /booking/ or /booking-success/.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blanche-nail-theme
Tags: custom-colors, custom-logo, custom-menu, responsive-layout, accessibility-ready
*/

/* -------------------------------------------------------------------------
 * Design tokens
 *
 * The palette and type scale are taken from the salon's own reference site so
 * the homepage and the booking funnel read as one brand. Colours and fonts are
 * overridable from the Customizer; the values here are the defaults.
 * ---------------------------------------------------------------------- */

:root {
	--bl-accent: #b8956b;
	--bl-accent-dark: #8f7049;
	--bl-accent-soft: #f2ebe3;
	--bl-line: #e8dfd4;
	--bl-ink: #1a1a1a;
	--bl-body: #4a453f;
	--bl-muted: #5c544e;
	--bl-page: #faf8f5;
	--bl-card: #ffffff;
	--bl-shadow: 0 18px 48px rgba(28, 24, 20, 0.08);
	--bl-shadow-sm: 0 6px 18px rgba(28, 24, 20, 0.06);

	--bl-font-display: "Cormorant Garamond", "Times New Roman", serif;
	--bl-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--bl-radius: 14px;
	--bl-radius-pill: 999px;
	--bl-max: 1180px;
	--bl-gutter: clamp(16px, 4vw, 40px);
	--bl-section-y: clamp(48px, 8vw, 104px);

	/* Published so the sticky mobile bar can reserve exactly its own height. */
	--bl-sticky-h: 0px;
}

/* -------------------------------------------------------------------------
 * Reset and base
 * ---------------------------------------------------------------------- */

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

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

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

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

body {
	margin: 0;
	background: var(--bl-page);
	color: var(--bl-body);
	font-family: var(--bl-font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: var(--bl-accent-dark);
}

h1,
h2,
h3,
h4 {
	font-family: var(--bl-font-display);
	color: var(--bl-ink);
	line-height: 1.15;
	margin: 0 0 0.5em;
	font-weight: 600;
	letter-spacing: 0.01em;
}

h1 {
	font-size: clamp(2.1rem, 5.5vw, 3.6rem);
}

h2 {
	font-size: clamp(1.7rem, 4vw, 2.6rem);
}

h3 {
	font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}

p {
	margin: 0 0 1rem;
}

/* Visible focus everywhere. Never removed — it is the only way a keyboard user
   can tell where they are. */
:focus-visible {
	outline: 3px solid var(--bl-accent-dark);
	outline-offset: 3px;
	border-radius: 4px;
}

/* -------------------------------------------------------------------------
 * Layout helpers
 * ---------------------------------------------------------------------- */

.bl-wrap {
	width: 100%;
	max-width: var(--bl-max);
	margin-inline: auto;
	padding-inline: var(--bl-gutter);
}

.bl-section {
	padding-block: var(--bl-section-y);
}

.bl-section--tint {
	background: var(--bl-accent-soft);
}

.bl-section--card {
	background: var(--bl-card);
}

.bl-section__head {
	text-align: center;
	max-width: 62ch;
	margin-inline: auto;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.bl-section__eyebrow {
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bl-accent-dark);
	font-weight: 600;
	margin-bottom: 0.6rem;
}

.bl-section__lede {
	color: var(--bl-muted);
	margin: 0;
}

.bl-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* A skip link that is invisible until focused. */
.bl-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--bl-ink);
	color: #fff;
	padding: 12px 18px;
	border-radius: 0 0 var(--bl-radius) 0;
}

.bl-skip:focus {
	left: 0;
}

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

.bl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	/* 48px min target: comfortably above the 44px touch guidance. */
	min-height: 48px;
	padding: 12px 26px;
	border-radius: var(--bl-radius-pill);
	border: 1px solid transparent;
	background: var(--bl-ink);
	color: #fff;
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.bl-btn:hover {
	background: var(--bl-accent-dark);
	color: #fff;
}

.bl-btn--accent {
	background: var(--bl-accent);
	color: #fff;
}

.bl-btn--accent:hover {
	background: var(--bl-accent-dark);
}

.bl-btn--ghost {
	background: transparent;
	color: var(--bl-ink);
	border-color: var(--bl-line);
}

.bl-btn--ghost:hover {
	background: var(--bl-accent-soft);
	color: var(--bl-ink);
	border-color: var(--bl-accent);
}

.bl-btn svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.bl-btn--sm {
	min-height: 42px;
	padding: 8px 18px;
	font-size: 0.9rem;
}

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

.bl-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(250, 248, 245, 0.94);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--bl-line);
}

.bl-header__inner {
	max-width: var(--bl-max);
	margin-inline: auto;
	padding: 10px var(--bl-gutter);
	display: flex;
	align-items: center;
	gap: 16px;
}

.bl-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--bl-ink);
	flex: 0 0 auto;
}

.bl-brand__logo {
	height: 64px;
	width: auto;
	object-fit: contain;
}

.bl-brand__name {
	font-family: var(--bl-font-display);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.1;
	white-space: nowrap;
}

.bl-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 4px;
}

.bl-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bl-nav__list a {
	display: inline-block;
	padding: 10px 14px;
	color: var(--bl-ink);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	border-radius: var(--bl-radius-pill);
}

.bl-nav__list a:hover {
	background: var(--bl-accent-soft);
	color: var(--bl-accent-dark);
}

.bl-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	color: var(--bl-ink);
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.bl-header__phone:hover {
	color: var(--bl-accent-dark);
}

.bl-header__phone svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.bl-header__cta {
	flex: 0 0 auto;
}

/* The menu button only exists below the desktop breakpoint. */
.bl-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-left: auto;
	background: transparent;
	border: 1px solid var(--bl-line);
	border-radius: var(--bl-radius);
	cursor: pointer;
	color: var(--bl-ink);
}

.bl-burger__bars,
.bl-burger__bars::before,
.bl-burger__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.bl-burger__bars::before,
.bl-burger__bars::after {
	content: "";
	position: absolute;
}

.bl-burger__bars::before {
	transform: translateY(-6px);
}

.bl-burger__bars::after {
	transform: translateY(6px);
}

.bl-burger[aria-expanded="true"] .bl-burger__bars {
	background: transparent;
}

.bl-burger[aria-expanded="true"] .bl-burger__bars::before {
	transform: rotate(45deg);
}

.bl-burger[aria-expanded="true"] .bl-burger__bars::after {
	transform: rotate(-45deg);
}

@media (max-width: 900px) {
	.bl-burger {
		display: inline-flex;
		position: relative;
	}

	.bl-nav {
		position: fixed;
		inset: 0 0 auto 0;
		top: var(--bl-header-h, 72px);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		padding: 8px var(--bl-gutter) 20px;
		background: var(--bl-page);
		border-bottom: 1px solid var(--bl-line);
		box-shadow: var(--bl-shadow);
		max-height: calc(100vh - var(--bl-header-h, 72px));
		overflow-y: auto;
		/* Hidden from everyone, including assistive technology, until opened. */
		display: none;
	}

	.bl-nav.is-open {
		display: flex;
	}

	.bl-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.bl-nav__list a {
		display: block;
		padding: 14px 8px;
		border-radius: 0;
		border-bottom: 1px solid var(--bl-line);
	}

	.bl-header__phone {
		justify-content: flex-start;
		border-bottom: 1px solid var(--bl-line);
	}

	.bl-header__phone {
		padding: 14px 8px;
	}

	.bl-header__cta .bl-btn {
		width: 100%;
		margin-top: 10px;
	}
}

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

.bl-hero {
	background: linear-gradient(180deg, var(--bl-accent-soft), var(--bl-page));
	padding-block: clamp(36px, 7vw, 88px);
}

.bl-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
}

.bl-hero__title {
	margin-bottom: 0.35em;
}

.bl-hero__text {
	font-size: clamp(1rem, 1.5vw, 1.1rem);
	color: var(--bl-muted);
	max-width: 54ch;
}

.bl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.bl-hero__media img {
	width: 100%;
	border-radius: var(--bl-radius);
	box-shadow: var(--bl-shadow);
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

@media (max-width: 860px) {
	.bl-hero__grid {
		grid-template-columns: 1fr;
	}

	.bl-hero__media {
		order: -1;
	}

	.bl-hero__media img {
		aspect-ratio: 16 / 10;
	}
}

/* -------------------------------------------------------------------------
 * Trust strip
 * ---------------------------------------------------------------------- */

.bl-trust {
	background: var(--bl-card);
	border-block: 1px solid var(--bl-line);
	padding-block: clamp(20px, 3vw, 32px);
}

.bl-trust__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bl-trust__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.95rem;
	color: var(--bl-muted);
}

.bl-trust__item svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--bl-accent);
	margin-top: 2px;
}

/* -------------------------------------------------------------------------
 * Service cards
 * ---------------------------------------------------------------------- */

.bl-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(16px, 2.5vw, 26px);
}

.bl-card {
	background: var(--bl-card);
	border: 1px solid var(--bl-line);
	border-radius: var(--bl-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--bl-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bl-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--bl-shadow);
}

.bl-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--bl-accent-soft);
}

.bl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bl-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
}

.bl-card__title {
	margin: 0;
}

.bl-card__text {
	color: var(--bl-muted);
	font-size: 0.95rem;
	margin: 0;
	flex: 1 1 auto;
}

.bl-card__action {
	margin-top: 12px;
}

/* -------------------------------------------------------------------------
 * Why / How
 * ---------------------------------------------------------------------- */

.bl-why__grid,
.bl-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: clamp(18px, 3vw, 32px);
}

.bl-why__item h3,
.bl-step h3 {
	margin-bottom: 0.3em;
}

.bl-why__item p,
.bl-step p {
	color: var(--bl-muted);
	margin: 0;
	font-size: 0.95rem;
}

.bl-step {
	position: relative;
	padding-top: 54px;
}

.bl-step__num {
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--bl-accent);
	color: #fff;
	font-family: var(--bl-font-display);
	font-size: 1.15rem;
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Promotion / gift cards
 * ---------------------------------------------------------------------- */

.bl-notes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(16px, 2.5vw, 26px);
}

.bl-note {
	background: var(--bl-card);
	border: 1px solid var(--bl-line);
	border-left: 4px solid var(--bl-accent);
	border-radius: var(--bl-radius);
	padding: 24px;
}

.bl-note h3 {
	margin-bottom: 0.4em;
}

.bl-note p {
	color: var(--bl-muted);
	margin: 0;
	font-size: 0.95rem;
}

.bl-note p + p {
	margin-top: 0.6rem;
}

/* -------------------------------------------------------------------------
 * Gallery
 * ---------------------------------------------------------------------- */

.bl-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: clamp(10px, 1.6vw, 18px);
}

.bl-gallery__item {
	margin: 0;
	border-radius: var(--bl-radius);
	overflow: hidden;
	background: var(--bl-accent-soft);
	aspect-ratio: 1 / 1;
}

.bl-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.bl-gallery__item:hover img {
	transform: scale(1.04);
}

/* -------------------------------------------------------------------------
 * Commitment / policies
 * ---------------------------------------------------------------------- */

.bl-commit__body {
	max-width: 68ch;
	margin-inline: auto;
	text-align: center;
	color: var(--bl-muted);
}

.bl-commit__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 22px;
}

/* -------------------------------------------------------------------------
 * Hours and directions
 * ---------------------------------------------------------------------- */

.bl-hours__grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}

@media (max-width: 860px) {
	.bl-hours__grid {
		grid-template-columns: 1fr;
	}
}

.bl-hours__table {
	width: 100%;
	border-collapse: collapse;
}

.bl-hours__table th,
.bl-hours__table td {
	text-align: left;
	padding: 10px 0;
	border-bottom: 1px solid var(--bl-line);
	font-size: 0.97rem;
	font-weight: 500;
}

.bl-hours__table td {
	text-align: right;
	color: var(--bl-muted);
}

.bl-hours__table tr.is-today th,
.bl-hours__table tr.is-today td {
	color: var(--bl-accent-dark);
	font-weight: 700;
}

.bl-hours__closed {
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.85rem;
}

.bl-address {
	font-style: normal;
	margin-bottom: 14px;
	line-height: 1.7;
}

.bl-map {
	border-radius: var(--bl-radius);
	overflow: hidden;
	border: 1px solid var(--bl-line);
	background: var(--bl-accent-soft);
	aspect-ratio: 16 / 11;
}

.bl-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* -------------------------------------------------------------------------
 * Social / contact
 * ---------------------------------------------------------------------- */

.bl-social {
	text-align: center;
}

.bl-social__icons {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin: 18px 0;
}

.bl-social__icons a {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--bl-line);
	color: var(--bl-accent-dark);
	background: var(--bl-card);
	transition: background-color 0.18s ease, color 0.18s ease;
}

.bl-social__icons a:hover {
	background: var(--bl-accent);
	color: #fff;
}

.bl-social__icons svg {
	width: 22px;
	height: 22px;
}

.bl-social__handle {
	color: var(--bl-muted);
	font-size: 1.02rem;
}

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

.bl-footer {
	background: var(--bl-ink);
	color: #cfc7bd;
	padding-block: clamp(32px, 5vw, 56px);
	/* Room for the sticky mobile bar so it never covers the last line. */
	padding-bottom: calc(clamp(32px, 5vw, 56px) + var(--bl-sticky-h));
}

.bl-footer a {
	color: #e8dfd4;
}

.bl-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
	margin-bottom: 28px;
}

.bl-footer__brand {
	font-family: var(--bl-font-display);
	font-size: 1.3rem;
	color: #fff;
	margin-bottom: 6px;
}

.bl-footer h4 {
	color: #fff;
	font-family: var(--bl-font-body);
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.bl-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: 0.95rem;
}

.bl-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	font-size: 0.87rem;
}

/* -------------------------------------------------------------------------
 * Sticky mobile CTA
 *
 * Only below the desktop breakpoint, and the body reserves its height so it
 * can never sit on top of content the customer still needs to read.
 * ---------------------------------------------------------------------- */

.bl-sticky {
	display: none;
}

@media (max-width: 900px) {
	.bl-sticky {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 70;
		padding: 10px var(--bl-gutter) calc(10px + env(safe-area-inset-bottom, 0px));
		background: rgba(250, 248, 245, 0.97);
		backdrop-filter: blur(8px);
		border-top: 1px solid var(--bl-line);
	}

	.bl-sticky .bl-btn {
		width: 100%;
	}
}

/* -------------------------------------------------------------------------
 * Interior pages (policies etc.)
 * ---------------------------------------------------------------------- */

.bl-page {
	padding-block: var(--bl-section-y);
}

.bl-page__body {
	max-width: 72ch;
	margin-inline: auto;
}

.bl-page__body h2,
.bl-page__body h3 {
	margin-top: 1.6em;
}

.bl-page__body ul,
.bl-page__body ol {
	padding-left: 1.3em;
}

.bl-page__body li {
	margin-bottom: 0.4em;
}

/* -------------------------------------------------------------------------
 * Reveal on scroll — opt-in, and a no-op when motion is reduced or JS is off.
 * ---------------------------------------------------------------------- */

.bl-reveal {
	opacity: 1;
}

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

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

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