/*
Theme Name: QHF&B Qinghe Charcoal BBQ
Theme URI: https://qinghebbq.com
Author: WarelyEcom
Description: Pixel-faithful block-theme rebuild of qinghebbq.com — Qinghe Charcoal BBQ (青禾炭火烤肉), authentic Northeast Chinese charcoal BBQ at 80 Club Street, Singapore. Dark warm near-black surfaces, Playfair display type with gold accents.
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qhfnb
Tags: block-theme, dark, restaurant
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--qh-bg:        #0A0806;
	--qh-bg-2:      #100D0A;
	--qh-surface:   #16120D;
	--qh-gold:      #C9A24B;
	--qh-gold-soft: #D8B878;
	--qh-ink:       #14100A;
	--qh-cream:     #F2EDE3;
	--qh-body:      #B7AFA2;
	--qh-line:      rgba(201, 162, 75, .22);
	--qh-line-soft: rgba(255, 255, 255, .08);
	--qh-overlay:   rgba(8, 6, 4, .62);
	--qh-font-display: "Playfair Display", "Noto Serif SC", serif;
	--qh-font-body: "Lato", sans-serif;
	--qh-font-zh:   "Noto Serif SC", serif;
	--qh-container: 1180px;
	color-scheme: dark;
}

/* ==========================================================================
   2. Reset & base elements
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--qh-bg);
	color: var(--qh-body);
	font-family: var(--qh-font-body);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	font-family: var(--qh-font-display);
	font-weight: 500;
	line-height: 1.15;
	color: var(--qh-cream);
}

p {
	margin: 0 0 1.2em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color .3s ease;
}

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

svg {
	display: inline-block;
	vertical-align: middle;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font-family: inherit;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: 0;
}

::selection {
	background: var(--qh-gold);
	color: var(--qh-ink);
}

[hidden],
.qh-hide {
	display: none !important;
}

/* Focus — visible gold outlines everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 1px solid var(--qh-gold);
	outline-offset: 3px;
}

/* ==========================================================================
   3. Layout primitives (CLASS CONTRACT)
   ========================================================================== */

.qh-section {
	padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.qh-container {
	max-width: var(--qh-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.is-center {
	text-align: center;
}

/* Eyebrow + rule */
.qh-eyebrow {
	display: block;
	margin: 0 0 14px;
	font-family: var(--qh-font-body);
	font-weight: 700;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--qh-gold);
}

.qh-eyebrow-rule {
	display: block;
	width: 36px;
	height: 2px;
	background: var(--qh-gold);
	margin: 0 0 28px;
}

.is-center .qh-eyebrow-rule,
.qh-hero .qh-eyebrow-rule {
	margin-left: auto;
	margin-right: auto;
}

/* Display headings */
.qh-display {
	font-family: var(--qh-font-display);
	font-weight: 500;
	line-height: 1.12;
	color: var(--qh-cream);
	margin: 0 0 24px;
}

.qh-display--xl {
	font-size: clamp(2.8rem, 6vw, 4.75rem);
}

.qh-display--lg {
	font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

.qh-italic,
em.qh-italic {
	font-family: var(--qh-font-display);
	font-style: italic;
	color: var(--qh-gold);
}

/* Lead paragraph */
.qh-lead {
	font-family: var(--qh-font-body);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.75;
	color: var(--qh-body);
	max-width: 640px;
}

.is-center .qh-lead,
.qh-hero .qh-lead {
	margin-left: auto;
	margin-right: auto;
}

/* Chinese accent type */
.qh-zh {
	font-family: var(--qh-font-zh);
	color: var(--qh-gold-soft);
}

/* Buttons */
.qh-btn {
	display: inline-block;
	font-family: var(--qh-font-body);
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	letter-spacing: .18em;
	text-transform: uppercase;
	text-align: center;
	padding: 17px 36px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
	-webkit-appearance: none;
	appearance: none;
}

.qh-btn--solid {
	background: var(--qh-gold);
	border-color: var(--qh-gold);
	color: var(--qh-ink);
}

.qh-btn--solid:hover {
	background: #B8913D;
	border-color: #B8913D;
	color: var(--qh-ink);
}

.qh-btn--outline {
	background: transparent;
	border-color: rgba(201, 162, 75, .55);
	color: var(--qh-cream);
}

.qh-btn--outline:hover {
	border-color: var(--qh-gold);
	color: var(--qh-gold);
}

.qh-btn--sm {
	padding: 13px 26px;
}

/* Button rows */
.qh-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 12px;
}

.is-center .qh-actions,
.qh-hero .qh-actions {
	justify-content: center;
}

/* Badge chip */
.qh-badge {
	display: inline-block;
	border: 1px solid var(--qh-gold);
	color: var(--qh-gold);
	font-family: var(--qh-font-body);
	font-weight: 700;
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: .15em;
	text-transform: uppercase;
	padding: 4px 10px;
}

/* Card */
.qh-card {
	background: var(--qh-surface);
	border: 1px solid var(--qh-line-soft);
}

/* ==========================================================================
   4. Hero
   ========================================================================== */

.qh-hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 120px 0 96px;
	background-color: var(--qh-bg-2);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.qh-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--qh-overlay);
}

.qh-hero > * {
	position: relative;
	z-index: 1;
}

.qh-hero--page {
	min-height: 56vh;
}

/* Scroll cue (hero bottom center) */
.qh-scroll-cue {
	position: absolute;
	left: 50%;
	bottom: 32px;
	transform: translateX(-50%);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-family: var(--qh-font-body);
	font-weight: 700;
	font-size: 10px;
	letter-spacing: .3em;
	text-indent: .3em;
	text-transform: uppercase;
	color: var(--qh-gold-soft);
	z-index: 1;
}

.qh-scroll-cue:hover {
	color: var(--qh-gold);
}

.qh-scroll-cue svg {
	width: 18px;
	height: 18px;
	animation: qh-bob 2.2s ease-in-out infinite;
}

@keyframes qh-bob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(6px); }
}

/* ==========================================================================
   5. Scroll reveal
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s ease, transform .7s ease;
}

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

/* Hero entrances must not wait for deferred JS (main.js only runs after the
   full CSS chain loads) — autoplay the fade-up in pure CSS inside any hero. */
.qh-hero .reveal {
	animation: qh-fade-up .9s ease .15s both;
}

@keyframes qh-fade-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   6. Header (fixed) + mobile menu
   ========================================================================== */

.qh-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 90;
	background: rgba(10, 8, 6, .88);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--qh-line-soft);
	transition: background-color .3s ease;
}

.qh-header.is-scrolled {
	background: rgba(10, 8, 6, .97);
}

body.admin-bar .qh-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.qh-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 76px;
}

/* Logo lockup */
.qh-logo {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	line-height: 1;
	flex-shrink: 0;
}

.qh-logo-zh {
	font-family: var(--qh-font-zh);
	font-weight: 500;
	font-size: 20px;
	letter-spacing: .12em;
	color: var(--qh-gold);
}

.qh-logo-en {
	font-family: var(--qh-font-body);
	font-weight: 400;
	font-size: 10px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--qh-cream);
}

/* Desktop nav */
.qh-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.qh-nav a {
	font-family: var(--qh-font-body);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--qh-cream);
	padding: 6px 0;
}

.qh-nav a:hover {
	color: var(--qh-gold);
}

.qh-nav a.active {
	color: var(--qh-gold);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
}

/* Header right */
.qh-header-actions {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-shrink: 0;
}

.qh-header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--qh-font-body);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: .06em;
	color: var(--qh-cream);
	white-space: nowrap;
}

.qh-header-phone svg {
	width: 15px;
	height: 15px;
	color: var(--qh-gold);
	flex-shrink: 0;
}

.qh-header-phone:hover {
	color: var(--qh-gold);
}

/* Burger */
.qh-burger {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	margin-right: -8px;
}

.qh-burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--qh-gold);
	transition: transform .3s ease, opacity .3s ease;
}

body.qh-mobile-open .qh-burger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

body.qh-mobile-open .qh-burger span:nth-child(2) {
	opacity: 0;
}

body.qh-mobile-open .qh-burger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile full-screen overlay menu */
.qh-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	padding: 100px 24px 48px;
	background: rgba(10, 8, 6, .98);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
}

body.qh-mobile-open {
	overflow: hidden;
}

body.qh-mobile-open .qh-mobile-menu {
	opacity: 1;
	visibility: visible;
}

.qh-mobile-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.qh-mobile-nav a {
	font-family: var(--qh-font-display);
	font-weight: 500;
	font-size: 24px;
	letter-spacing: .08em;
	color: var(--qh-cream);
}

.qh-mobile-nav a:hover,
.qh-mobile-nav a.active {
	color: var(--qh-gold);
}

.qh-mobile-menu .qh-header-phone {
	margin-top: 14px;
	font-size: 14px;
}

@media (max-width: 920px) {
	.qh-nav,
	.qh-header-inner .qh-header-phone {
		display: none;
	}

	.qh-burger {
		display: flex;
	}
}

@media (max-width: 560px) {
	.qh-header-inner .qh-btn {
		display: none;
	}
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.qh-footer {
	background: #0C0A07;
	border-top: 1px solid var(--qh-line-soft);
	padding: 72px 0 0;
}

.qh-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
	gap: 48px;
}

.qh-footer-zh {
	font-family: var(--qh-font-zh);
	font-weight: 500;
	font-size: 26px;
	letter-spacing: .1em;
	color: var(--qh-gold);
	line-height: 1.3;
}

.qh-footer-en {
	font-family: var(--qh-font-body);
	font-weight: 400;
	font-size: 10px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--qh-cream);
	margin: 6px 0 20px;
}

.qh-footer-tag {
	font-size: 14px;
	max-width: 340px;
	margin-bottom: 26px;
}

/* Social circles */
.qh-social {
	display: flex;
	gap: 12px;
}

.qh-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(201, 162, 75, .55);
	border-radius: 50%;
	color: var(--qh-gold);
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.qh-social a:hover {
	background: var(--qh-gold);
	border-color: var(--qh-gold);
	color: var(--qh-ink);
}

.qh-social svg {
	width: 16px;
	height: 16px;
}

/* Column headings */
.qh-footer-h {
	font-family: var(--qh-font-body);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--qh-cream);
	margin: 0 0 22px;
}

/* Nav links column */
.qh-footer-links li {
	margin-bottom: 12px;
}

.qh-footer-links a {
	font-family: var(--qh-font-body);
	font-weight: 400;
	font-size: 14px;
	color: var(--qh-body);
}

.qh-footer-links a:hover {
	color: var(--qh-gold);
}

/* Icon rows (contact / hours) */
.qh-frow {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.6;
}

.qh-frow svg {
	width: 16px;
	height: 16px;
	color: var(--qh-gold);
	flex-shrink: 0;
	margin-top: 4px;
}

.qh-frow a:hover {
	color: var(--qh-gold);
}

.qh-frow-day {
	display: block;
	color: var(--qh-cream);
	font-size: 14px;
}

.qh-frow-time {
	display: block;
	color: var(--qh-body);
	font-size: 13px;
}

/* Reservation note card */
.qh-footer-card {
	padding: 18px;
	border-color: var(--qh-line);
	margin-top: 8px;
}

.qh-footer-card-h {
	display: block;
	font-family: var(--qh-font-body);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--qh-gold);
	margin-bottom: 8px;
}

.qh-footer-card p {
	font-size: 13px;
	color: var(--qh-body);
	margin: 0;
}

/* Bottom bar */
.qh-footer-bottom {
	border-top: 1px solid var(--qh-line-soft);
	margin-top: 64px;
	padding: 22px 0;
}

.qh-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
	color: var(--qh-body);
}

@media (max-width: 880px) {
	.qh-footer-grid {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.qh-footer-bottom-inner {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}
}

/* ==========================================================================
   8. Forms (shared base — contact page relies on these)
   ========================================================================== */

label {
	display: block;
	font-family: var(--qh-font-body);
	font-weight: 700;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--qh-body);
	margin-bottom: 8px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
	width: 100%;
	background: #0F0C09;
	border: 1px solid var(--qh-line-soft);
	border-radius: 0;
	color: var(--qh-cream);
	font-family: var(--qh-font-body);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	padding: 14px;
	transition: border-color .3s ease;
	-webkit-appearance: none;
	appearance: none;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--qh-gold);
}

::placeholder {
	color: rgba(183, 175, 162, .55);
	opacity: 1;
}

select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C9A24B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
	padding-right: 42px;
	cursor: pointer;
}

select option {
	background: #0F0C09;
	color: var(--qh-cream);
}

textarea {
	resize: vertical;
	min-height: 110px;
}

/* ==========================================================================
   9. Generic content (index.html template)
   ========================================================================== */

.qh-page-plain {
	padding-top: 76px;
}

.qh-entry {
	max-width: 720px;
	margin: 8px auto 0;
	text-align: left;
}

.qh-entry a {
	color: var(--qh-gold);
}

.qh-entry a:hover {
	color: var(--qh-gold-soft);
}

/* ==========================================================================
   10. Reduced motion
   ========================================================================== */

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

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

	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.qh-hero .reveal {
		animation: none;
	}

	.qh-scroll-cue svg {
		animation: none;
	}
}
