/*
Theme Name: 95 LEATHER
Theme URI: https://95leather.vn/
Description: A restrained, editable block-theme child for 95 LEATHER. Page sections remain editable in the WordPress Site Editor and block editor.
Author: 95 LEATHER
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: 95leather
License: GNU General Public License v2 or later
*/

:root {
	--leather-ink: #171512;
	--leather-brown: #6f412d;
	--leather-oxblood: #6d2525;
	--leather-tan: #b88a63;
	--leather-paper: #f7f4ef;
	--leather-line: #ded7cf;
	--leather-muted: #6f6a64;
}

html { scroll-behavior: smooth; }
body { background: #fff; color: var(--leather-ink); }
a { color: inherit; }
a:hover { color: var(--leather-brown); }
:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--leather-tan);
	outline-offset: 3px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255,255,255,.96);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--leather-line);
}
.site-header .wp-block-group { box-sizing: border-box; }
.site-header .wp-block-site-title a {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(1.05rem, 1.4vw, 1.3rem);
	letter-spacing: .14em;
	text-decoration: none;
}
.site-header .wp-block-navigation-item__content {
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
}
.site-header .wp-block-search { min-width: 1.9rem; }
.site-header .wp-block-search__input { border: 0; border-bottom: 1px solid var(--leather-line); }
.site-header .wp-block-search__button { background: transparent; color: var(--leather-ink); padding: .35rem; }
.site-header .wc-block-mini-cart__button {
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: .4rem;
	border: 1px solid var(--leather-line);
	border-radius: 0;
}
.l95-contact-catalog .site-header .wp-block-woocommerce-mini-cart { display: none !important; }
.admin-bar .site-header { top: 32px; }

/*
 * Database seeds use plain HTML so the copy stays editable with or without
 * Gutenberg. Attribute selectors are intentional: CSS identifiers cannot
 * begin with a digit unless escaped.
 */
[class~="95l-page"] {
	display: grid;
	gap: clamp(3.5rem, 7vw, 7rem);
	box-sizing: border-box;
	width: min(100%, 1340px);
	margin-inline: auto;
	padding-block: clamp(3.5rem, 7vw, 7rem);
}
.wp-block-post-content > [class~="95l-page"] {
	max-width: var(--wp--style--global--wide-size, 1340px);
}
[class~="95l-page"] > :not([class~="95l-hero"]) {
	box-sizing: border-box;
	width: min(100%, 900px);
	margin-inline: auto;
}
[class~="95l-page"] h1,
[class~="95l-page"] h2 {
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 400;
	letter-spacing: -.025em;
}
[class~="95l-page"] h1 {
	margin-block: 0 1.25rem;
	font-size: clamp(2.8rem, 6vw, 6rem);
}
[class~="95l-page"] h2 { font-size: clamp(1.9rem, 3.7vw, 3.5rem); }
[class~="95l-page"] p,
[class~="95l-page"] li { line-height: 1.75; }
[class~="95l-page"] > section:not([class~="95l-hero"]) {
	padding-top: clamp(2rem, 4vw, 4rem);
	border-top: 1px solid var(--leather-line);
}
[class~="95l-page"] .eyebrow,
[class~="95l-page"] > .eyebrow {
	margin-bottom: .75rem;
	color: var(--leather-brown);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
}
[class~="95l-hero"] {
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	min-height: min(720px, 76vh);
	padding: clamp(2rem, 7vw, 6rem);
	background:
		linear-gradient(90deg, rgba(13, 10, 8, .88) 0%, rgba(13, 10, 8, .62) 46%, rgba(13, 10, 8, .08) 100%),
		url('assets/images/hero-workshop.webp') center / cover no-repeat;
	color: #fff;
}
[class~="95l-hero"] h1 {
	max-width: 720px;
	font-size: clamp(2.7rem, 6.4vw, 6.3rem);
	line-height: .98;
}
[class~="95l-hero"] > p:not(.eyebrow) { max-width: 580px; }
[class~="95l-hero"] a {
	display: inline-block;
	margin: .35rem .5rem .35rem 0;
	padding: .85rem 1.1rem;
	border: 1px solid rgba(255, 255, 255, .75);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-decoration: none;
}
[class~="95l-hero"] a:hover { background: #fff; color: var(--leather-ink); }
[class~="95l-price-note"] {
	display: inline-flex;
	width: auto !important;
	margin-inline: 0 !important;
	padding: .55rem .8rem;
	border: 1px solid var(--leather-brown);
	color: var(--leather-brown);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.leather-hero { min-height: min(760px, 78vh); }
.leather-hero .wp-block-cover__inner-container { max-width: 1340px; width: 100%; padding: clamp(2rem, 7vw, 6rem); box-sizing: border-box; }
.leather-hero h1 { max-width: 680px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2.7rem, 6.8vw, 6.6rem); line-height: .98; letter-spacing: -.035em; }
.leather-hero p { max-width: 540px; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.65; }
.leather-kicker { font-size: .72rem !important; letter-spacing: .2em; text-transform: uppercase; }
.leather-hero .wp-block-button__link, .leather-cta .wp-block-button__link { border: 1px solid currentColor; border-radius: 0; padding: .95rem 1.45rem; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.leather-hero .wp-block-button__link:hover, .leather-cta .wp-block-button__link:hover { background: var(--leather-tan); border-color: var(--leather-tan); color: #fff; }

.leather-section { padding-top: clamp(4.5rem, 9vw, 9rem); padding-bottom: clamp(4.5rem, 9vw, 9rem); }
.leather-section--paper { background: var(--leather-paper); }
.leather-section h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.02em; }
.leather-eyebrow { color: var(--leather-brown); font-size: .7rem !important; letter-spacing: .2em; text-transform: uppercase; }
.leather-rule { border-top: 1px solid var(--leather-line); }
.leather-intro-copy { font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.35; }
.leather-muted { color: var(--leather-muted); }
.leather-image-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.leather-section--dark { background: var(--leather-ink); color: #fff; }
.leather-section--dark .leather-eyebrow { color: #d2a47a; }
.leather-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--leather-line); }
.leather-card-grid > * { background: #fff; }
.leather-section--dark .leather-card-grid { background: rgba(255,255,255,.18); }
.leather-section--dark .leather-card-grid > * { background: #211d19; }
.leather-card { min-height: 210px; padding: clamp(1.25rem, 3vw, 2.4rem); transition: transform .25s ease, background .25s ease; }
.leather-card:hover { transform: translateY(-4px); background: #fffaf4 !important; color: var(--leather-ink); }
.leather-card h3 { margin-top: 0; font-size: 1.15rem; }
.leather-card p { color: var(--leather-muted); line-height: 1.65; }
.leather-card a { text-decoration: none; }

.leather-process-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.leather-process-card { border: 1px solid var(--leather-line); padding: 1.5rem; min-height: 220px; background: #fff; }
.leather-process-card .step { color: var(--leather-brown); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.leather-process-card h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.4rem; font-weight: 400; }
.leather-process-card p { color: var(--leather-muted); line-height: 1.6; }

.leather-page-hero { background: var(--leather-paper); padding: clamp(4rem, 8vw, 8rem) 0; }
.leather-page-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.8rem, 6vw, 6rem); font-weight: 400; letter-spacing: -.04em; }
.leather-page-hero p { max-width: 650px; color: var(--leather-muted); font-size: 1.12rem; line-height: 1.7; }

.leather-service-list > .leather-service:nth-child(even) { background: var(--leather-paper); }
.leather-service { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.leather-service h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; }
.leather-service p { color: var(--leather-muted); line-height: 1.8; }
.leather-service img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.leather-product-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.leather-product-category { border: 1px solid var(--leather-line); min-height: 150px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; background: linear-gradient(145deg, #fff, #f5eee7); transition: border-color .2s ease, transform .2s ease; }
.leather-product-category:hover { border-color: var(--leather-brown); transform: translateY(-3px); }
.leather-product-category span { color: var(--leather-brown); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
.leather-product-category strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.3rem; font-weight: 400; }

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none;
	clear: none;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none;
	margin: 0 !important;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { border: 1px solid var(--leather-line); padding: 0 0 1.25rem; background: #fff; }
.woocommerce ul.products li.product a img { margin: 0 0 1rem; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price { padding: 0 1rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: Georgia, 'Times New Roman', serif; font-size: 1.2rem; font-weight: 400; }
.woocommerce ul.products li.product .price { color: var(--leather-brown); font-weight: 600; }
.woocommerce .button, .woocommerce a.button, .woocommerce button.button { border-radius: 0; background: var(--leather-ink); color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.woocommerce .button:hover, .woocommerce a.button:hover { background: var(--leather-brown); color: #fff; }
.single-product div.product .summary { box-sizing: border-box; padding: clamp(1rem, 4vw, 3rem); }
.single-product div.product .product_title { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2rem, 4vw, 4rem); }

/* WooCommerce's block templates use different selectors from legacy loops. */
.wp-block-woocommerce-product-collection { margin-block: 2rem 0; }
.wp-block-woocommerce-product-template { gap: 1.5rem; }
.wp-block-woocommerce-product-template > li {
	overflow: hidden;
	border: 1px solid var(--leather-line);
	background: #fff;
}
.wp-block-woocommerce-product-template .wc-block-components-product-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.wp-block-woocommerce-product-template .wp-block-post-title,
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-price,
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-button {
	padding-inline: 1rem;
}
.wp-block-woocommerce-product-template .wp-block-post-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 400;
}
.wp-block-woocommerce-product-template .wc-block-components-product-price { color: var(--leather-brown); }
.woocommerce-breadcrumb,
.wc-block-breadcrumbs { color: var(--leather-muted); font-size: .82rem; }

.leather-partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.leather-partner { border: 1px solid var(--leather-line); min-height: 150px; padding: 1rem; display: grid; place-items: center; text-align: center; background: #fff; }
.leather-partner img { max-width: 100%; max-height: 90px; object-fit: contain; }

.leather-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.leather-blog-card { border-top: 1px solid var(--leather-line); padding-top: 1rem; }
.leather-blog-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.leather-blog-card h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.5rem; font-weight: 400; }
.leather-blog-card a { text-decoration: none; }
.leather-blog-list { display: grid; gap: clamp(2.5rem, 6vw, 5rem); padding: 0; }
.leather-blog-card--editorial { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); padding-top: 1.5rem; }
.leather-blog-card--editorial .wp-block-post-featured-image { margin: 0; }
.leather-blog-list > li:nth-child(even) .wp-block-post-featured-image { order: 2; }
.leather-blog-card__copy { width: 100%; }

.leather-contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 8vw, 8rem); }
.leather-contact-form label { display: block; margin-bottom: 1.2rem; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.leather-contact-form input, .leather-contact-form textarea { box-sizing: border-box; width: 100%; margin-top: .45rem; border: 1px solid var(--leather-line); border-radius: 0; padding: .9rem; font: inherit; background: #fff; }
.leather-contact-form textarea { min-height: 150px; resize: vertical; }
.leather-contact-form button { border: 1px solid var(--leather-ink); background: var(--leather-ink); color: #fff; padding: 1rem 1.5rem; border-radius: 0; text-transform: uppercase; letter-spacing: .12em; cursor: pointer; }
.leather-contact-form button:hover { background: var(--leather-brown); border-color: var(--leather-brown); }
.leather-form-notice { padding: .9rem 1rem; border-left: 3px solid var(--leather-brown); background: var(--leather-paper); }
.leather-form-notice.is-error { border-color: var(--leather-oxblood); }
.leather-map { min-height: 320px; border: 1px solid var(--leather-line); }
.leather-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.site-footer { background: var(--leather-ink); color: #fff; }
.site-footer a { color: #fff; }
.site-footer .leather-muted { color: #c8c0b8; }
.site-footer .wp-block-site-title a { font-family: Georgia, 'Times New Roman', serif; letter-spacing: .13em; text-decoration: none; }
.site-footer .wp-block-navigation-item__content { font-size: .76rem; letter-spacing: .08em; text-decoration: none; }
.site-footer .l95-business-info__item { border-color: rgba(255,255,255,.2); }
.site-footer .l95-business-info__label { color: #d2a47a; }
.site-footer .l95-business-info__value,
.site-footer .l95-business-info__value a,
.site-footer .l95-text-link,
.site-footer .l95-social-links a { color: #fff; }
.site-footer .l95-social-links a { border-color: rgba(255,255,255,.3); }
.site-footer .l95-map iframe { background: #f3eee8; }

.leather-reference-note {
	margin-top: .75rem;
	color: var(--leather-muted);
	font-size: .78rem;
	font-style: italic;
}
.leather-admin-note {
	padding: 1rem 1.15rem;
	border-left: 3px solid var(--leather-tan);
	background: #fff8ef;
	color: var(--leather-ink);
}

.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

@media (max-width: 900px) {
	.site-header .header-inner { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
	/* WordPress switches the Navigation block at 600px by default. Use the
	 * same accessible overlay sooner so the six-item menu cannot crowd tablet
	 * widths; the search action stays available beside the menu button. */
	.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.site-header .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed;
		inset: 0;
		box-sizing: border-box;
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		padding: clamp(2rem, 8vw, 4rem);
		background: #fff;
		overflow-y: auto;
		align-items: flex-start;
	}
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		width: 100%;
		align-items: flex-start;
	}
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		padding-top: clamp(3rem, 12vw, 6rem);
	}
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		font-size: clamp(1rem, 3vw, 1.35rem);
	}
	.leather-card-grid, .leather-process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.leather-product-categories, .leather-partners { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.leather-blog-grid { grid-template-columns: 1fr 1fr; }
	.leather-blog-card--editorial { grid-template-columns: 1fr 1fr; }
	.leather-contact-grid { grid-template-columns: 1fr; gap: 3rem; }
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 46px; }
	.leather-hero { min-height: 620px; }
	.leather-card-grid, .leather-process-grid, .leather-product-categories, .leather-partners, .leather-blog-grid { grid-template-columns: 1fr; }
	.leather-blog-card--editorial { grid-template-columns: 1fr; }
	.woocommerce ul.products { grid-template-columns: 1fr; }
	.leather-blog-list > li:nth-child(even) .wp-block-post-featured-image { order: 0; }
	.leather-card { min-height: 0; }
	.leather-page-hero { padding: 4rem 1rem; }
	.leather-section { padding-left: 1rem; padding-right: 1rem; }
	[class~="95l-page"] { gap: 3.5rem; padding-block: 3.5rem; }
	[class~="95l-hero"] {
		min-height: 620px;
		margin-inline: calc(clamp(1rem, 4vw, 3rem) * -1);
		background-position: 62% center;
	}
}
