/*
Theme Name: POP Liquor
Description: One-page bilingual (Myanmar / English) portfolio for POP Liquor & Beverage, Naypyitaw. Myanmar at /, English at /en/. Edit all text in inc/content.php.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: pop-liquor
*/

/* ------------------------------------------------------------------
   Colours: light theme "Warm Cream + Blue", from the POP brand board
   Butter Yellow #fff3b3 · Prussian #295196 · Jet #0f0606 · Midnight Grey #231f20
   ------------------------------------------------------------------ */
:root {
	--bg: #fffbea;            /* page: warm cream */
	--bg-alt: #fff3b3;        /* alternate sections: Butter Yellow */
	--surface: #ffffff;
	--line: #e8dfc0;          /* borders: sand */
	--text: #0f0606;          /* headings and main text: Jet */
	--muted: #4a4344;         /* body text: warm dark grey */
	--accent: #295196;        /* buttons and links: Prussian Blue */
	--accent-hover: #1f3f78;
	--butter: #fff3b3;
	--butter-light: #fffadf;
	--jet: #0f0606;
	--viber: #7360f2;
	--open: #2f9e57;
	--closed: #c9573a;

	--font-display: "Oswald", "Noto Sans Myanmar", sans-serif;
	--font-body: "Inter", "Noto Sans Myanmar", system-ui, sans-serif;

	--radius: 10px;
	--container: 1120px;
	--header-h: 68px;
}

/* Myanmar script needs its own font first, and more line height. */
html[lang="my"] {
	--font-display: "Noto Sans Myanmar", "Oswald", sans-serif;
	--font-body: "Noto Sans Myanmar", "Inter", system-ui, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

html[lang="my"] body {
	line-height: 1.95;
}

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

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

h1,
h2,
h3 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.2;
	color: var(--text);
}

html[lang="my"] :is(h1, h2, h3) {
	line-height: 1.6;
}

h2 {
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
}

html[lang="my"] h2 {
	font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
}

h3 {
	font-size: 1.2rem;
}

p {
	margin: 0 0 1em;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.container {
	width: min(100% - 2.5rem, var(--container));
	margin-inline: auto;
}

.eyebrow {
	margin: 0 0 0.6rem;
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

html[lang="my"] .eyebrow {
	font-size: 0.9rem;
	letter-spacing: 0;
}

.icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.7rem 1.3rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

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

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

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

.btn-viber:hover {
	background: #8576f5;
}

.btn-ghost {
	border-color: rgba(15, 6, 6, 0.25);
	color: var(--text);
}

.btn-ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	height: var(--header-h);
	background: rgba(255, 251, 234, 0.94);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(8px);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	height: 100%;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--text);
	text-decoration: none;
}

/* logo.png: the yellow-letter logo with a transparent background.
   A faint dark outline keeps the yellow letters readable on the cream header. */
.brand-logo {
	width: 54px;
	height: 54px;
	filter: drop-shadow(0 0 0.6px rgba(15, 6, 6, 0.7)) drop-shadow(0 0 1px rgba(15, 6, 6, 0.35));
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.brand-name {
	font-family: "Oswald", sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--text);
}

.brand-sub {
	font-family: "Oswald", sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.site-nav {
	display: flex;
	gap: 1.5rem;
	margin-left: auto;
}

.site-nav a {
	color: var(--muted);
	font-size: 0.95rem;
	text-decoration: none;
}

.site-nav a:hover {
	color: var(--accent);
}

.lang-switch {
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--accent);
	border-radius: 999px;
	color: var(--accent);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.lang-switch[lang="my"] {
	font-family: "Noto Sans Myanmar", sans-serif;
	line-height: 1.7;
}

.lang-switch:hover {
	background: var(--accent);
	color: #fff;
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
/* The banner fills the first screen (below the header); the text sits in its lower part. */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: calc(100vh - var(--header-h));
	min-height: calc(100svh - var(--header-h));
	padding: 5rem 0 clamp(4rem, 14vh, 9rem);
	overflow: hidden;
}

.hero-media {
	position: absolute;
	inset: 0;
}

.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 40% 30%;
}

.hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	/* Cream overlay so dark text stays readable over the shop photo. */
	background:
		linear-gradient(90deg, rgba(255, 251, 234, 0.8) 0%, rgba(255, 251, 234, 0.6) 45%, rgba(255, 251, 234, 0.15) 100%),
		linear-gradient(0deg, var(--bg) 0%, rgba(255, 251, 234, 0) 30%);
}

.hero-inner {
	position: relative;
}

/* A soft cream glow keeps the text readable where more of the photo shows through. */
.hero :is(.eyebrow, .hero-title, .hero-text) {
	text-shadow: 0 0 2px rgba(255, 251, 234, 0.9), 0 0 12px rgba(255, 251, 234, 0.85);
}

.hero-inner > * {
	max-width: 620px;
}

/* The tagline gets the full width so it stays on one line on larger screens. */
.hero-inner > .hero-title,
.hero-inner > .hero-text {
	max-width: none;
}

/* The brand name, in the same tall bold lettering as the shop's signboard. */
.hero-title,
html[lang="my"] .hero-title {
	margin-bottom: 0.9rem;
	font-family: "Oswald", sans-serif;
	font-size: clamp(2.4rem, 1.4rem + 4vw, 4.5rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.01em;
}

/* Semi-bold and a little darker, so it reads clearly over the photo. */
.hero-text {
	color: #2b2526;
	font-size: 1.1rem;
	font-weight: 600;
}

/* Slightly smaller in Myanmar so the sentence fits on one line on desktop. */
html[lang="my"] .hero-text {
	font-size: 0.94rem;
}

.open-status {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0.25rem 0 1.5rem;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	font-size: 0.92rem;
}

.open-status[hidden] {
	display: none;
}

.open-status .dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--muted);
}

.open-status.is-open .dot {
	background: var(--open);
	box-shadow: 0 0 0 4px rgba(47, 158, 87, 0.18);
}

.open-status.is-closed .dot {
	background: var(--closed);
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.section {
	padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0;
}

.section-alt {
	background: var(--bg-alt);
	border-block: 1px solid var(--line);
}

.section-head {
	margin-bottom: 2.5rem;
}

.section-head p:last-child {
	color: var(--muted);
}

/* About: text, then a row of three numbers */
/* Heading uses the full width; paragraphs stay at a comfortable reading width. */
.about p {
	max-width: 780px;
	color: var(--muted);
}

.facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 3rem 0 0;
	padding: 2rem 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.facts li {
	display: flex;
	flex-direction: column;
	padding: 0 1.75rem;
	border-left: 1px solid var(--line);
}

.facts li:first-child {
	padding-left: 0;
	border-left: 0;
}

.facts strong {
	font-family: "Oswald", "Noto Sans Myanmar", sans-serif;
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--accent);
}

html[lang="my"] .facts strong {
	font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
	line-height: 1.9;
}

.facts span {
	color: var(--muted);
	font-size: 0.95rem;
}

/* Products: one sentence, set large. */
.statement {
	max-width: 1000px;
	margin: 0 auto;
	text-align: center;
	text-wrap: balance;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);
	font-weight: 700;
	line-height: 1.45;
	color: var(--text);
}

.nobreak {
	white-space: nowrap;
}

html[lang="my"] .statement {
	font-size: clamp(1.15rem, 0.9rem + 0.9vw, 1.5rem);
	line-height: 1.9;
}

/* Bulk orders: a Prussian Blue band with Butter Yellow heading, so the offer stands out. */
.bulk {
	background: var(--accent);
	color: #fff;
}

.bulk h2 {
	color: var(--butter);
}

.bulk .eyebrow {
	color: var(--butter-light);
}

.bulk :focus-visible {
	outline-color: var(--butter);
}

/* Main button: yellow with black text. */
.bulk .btn-primary {
	background: var(--butter);
	color: var(--jet);
}

.bulk .btn-primary:hover {
	background: var(--butter-light);
}

/* Phone button: yellow outline. */
.bulk .btn-ghost {
	border-color: rgba(255, 243, 179, 0.6);
	color: var(--butter);
}

.bulk .btn-ghost:hover {
	border-color: var(--butter);
	background: rgba(255, 255, 255, 0.08);
	color: var(--butter);
}

.bulk-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.bulk-media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: 0 10px 30px rgba(15, 6, 6, 0.25);
}

.bulk-copy p {
	color: #e6ecf7;
}

.bulk-copy .actions {
	margin-top: 1.5rem;
}

/* Gallery */
.gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 220px;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery-storefront {
	grid-column: span 2;
	grid-row: span 2;
}

.gallery-item a {
	position: relative;
	display: block;
	height: 100%;
	overflow: hidden;
	border-radius: var(--radius);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.gallery-item a:hover img {
	transform: scale(1.04);
}

.gallery-caption {
	position: absolute;
	inset: auto 0 0;
	padding: 2rem 1rem 0.8rem;
	background: linear-gradient(0deg, rgba(15, 6, 6, 0.8), rgba(15, 6, 6, 0));
	color: #fff;
	font-size: 0.92rem;
}

/* Visit */
.visit {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: stretch;
}

.details {
	display: grid;
	gap: 1.25rem;
	margin: 1.5rem 0 2rem;
}

.details dt {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--accent);
	font-size: 0.88rem;
	font-weight: 600;
}

.details dd {
	margin: 0.15rem 0 0;
	padding-left: 1.65rem;
}

.details dd a {
	color: var(--text);
	text-decoration-color: #cfc4a0;
	text-underline-offset: 4px;
}

.details dd a:hover {
	color: var(--accent);
}

.map {
	min-height: 380px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

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

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
/* The footer stays dark (Jet) to close the page. */
.site-footer {
	padding: 2.5rem 0;
	background: var(--jet);
	color: #bbb2a8;
	font-size: 0.9rem;
}

.footer-inner p {
	margin: 0;
}

.footer-note {
	margin-bottom: 0.75rem !important;
}

.footer-copy {
	opacity: 0.7;
}

/* Back-to-top button: appears bottom right after scrolling down. */
.to-top {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 25;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	box-shadow: 0 6px 20px rgba(15, 6, 6, 0.25);
	opacity: 0;
	transform: translateY(16px) scale(0.9);
	pointer-events: none;
	transition: opacity 0.25s, transform 0.25s, background-color 0.15s;
}

.to-top.is-visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.to-top:hover {
	background: var(--accent-hover);
}

.to-top .icon {
	width: 22px;
	height: 22px;
	stroke-width: 2.4;
}

/* Bottom contact bar: phones only */
.phone-bar {
	display: none;
}

/* ------------------------------------------------------------------
   Smaller screens
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
	.site-nav {
		display: none;
	}

	.lang-switch {
		margin-left: auto;
	}

	.about,
	.bulk-inner,
	.visit {
		grid-template-columns: 1fr;
	}

	.gallery {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 180px;
	}

	.gallery-storefront {
		grid-column: span 2;
	}

}

@media (max-width: 640px) {
	:root {
		--header-h: 60px;
	}

	.brand-sub {
		display: none;
	}

	/* Full first screen on phones too, above the bottom contact bar. */
	.hero {
		min-height: calc(100svh - var(--header-h) - 80px);
		padding: 3rem 0 2.5rem;
	}

	.hero-media::after {
		background: linear-gradient(0deg, var(--bg) 0%, rgba(255, 251, 234, 0.78) 40%, rgba(255, 251, 234, 0.6) 100%);
	}

	/* The bottom bar replaces the hero buttons on phones. */
	.hero .actions {
		display: none;
	}

	.gallery {
		grid-auto-rows: 150px;
	}

	/* Facts stack on phones, with a line between each. */
	.facts {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.facts li,
	.facts li:first-child {
		padding: 1.25rem 0 0;
		border-left: 0;
		border-top: 1px solid var(--line);
	}

	.facts li:first-child {
		padding-top: 0;
		border-top: 0;
	}

	.phone-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 30;
		display: grid;
		/* minmax(0, 1fr) keeps the three buttons equal and inside the screen. */
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.5rem;
		padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
		background: rgba(255, 251, 234, 0.97);
		border-top: 1px solid var(--line);
	}

	/* App-style buttons: icon on top, one-line label underneath. */
	.phone-bar .btn {
		flex-direction: column;
		gap: 0.15rem;
		min-height: 56px;
		padding: 0.4rem 0.25rem;
		border-radius: 12px;
		font-size: 0.8rem;
		line-height: 1.3;
		white-space: nowrap;
	}

	.phone-bar .btn span {
		overflow: hidden;
		max-width: 100%;
		text-overflow: ellipsis;
	}

	.phone-bar .icon {
		width: 1.35rem;
		height: 1.35rem;
	}

	/* Sit above the bottom contact bar. */
	.to-top {
		right: 1rem;
		bottom: calc(84px + env(safe-area-inset-bottom));
		width: 44px;
		height: 44px;
	}

	body {
		padding-bottom: 80px;
	}
}

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

	.gallery-item img,
	.to-top {
		transition: none;
	}
}
