/*
Theme Name: The Premium Malt's USA
Theme URI: https://thepremiummalts-usa.com/
Author: BOX DSGN
Author URI: https://boxdsgn.co/
Description: Lightweight theme for The Premium Malt's USA. Replaces Salient and WPBakery. Page sections are plain HTML blocks.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tpm
Update URI: false
*/

:root {
	--navy: #01012f;
	--gold: #b2994e;
	--gold-light: #c1a651;
	--focus: #c9a227;
	--hdr-h: 96px;
	--wrap: 1208px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--font-body, "Helvetica Neue", Arial, sans-serif);
	font-size: 14px;
	line-height: 26px;
	letter-spacing: .01em;
	color: #676767;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head, "Helvetica Neue", Arial, sans-serif);
	font-weight: 600;
	color: #000;
	margin: 0 0 .5em;
	letter-spacing: .02em;
}
h1 { font-size: 54px; line-height: 66px; }
h2 { font-size: 34px; line-height: 44px; }
h3 { font-size: 22px; line-height: 34px; }
h4 { font-size: 18px; line-height: 32px; }
p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.5em; }
[id] { scroll-margin-top: var(--hdr-h); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	left: 8px; top: -80px;
	z-index: 100000;
	background: #fff;
	color: #1a3ad9;
	padding: 10px 16px;
	font-weight: 700;
	text-decoration: underline;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--navy);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner {
	position: relative;
	width: min(100% - 48px, var(--wrap));
	margin: 0 auto;
	min-height: 126px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-header__logo { display: block; flex: 0 0 auto; line-height: 0; }
.site-header__logo img { width: 100px; height: auto; }
.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 4px 0;
	font-family: var(--font-body, Georgia, serif);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	letter-spacing: .04em;
	color: #d2b86c;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color .2s ease;
}
.site-nav a:hover,
.site-nav a.is-current { border-bottom-color: #d2b86c; }
/* Instagram icon (menu item 351) */
.site-nav .menu-item-351 a { border-bottom: 0; padding: 0; }
.site-nav .menu-item-351 a span {
	display: inline-block;
	width: 28px;
	height: 28px;
	background: url(/wp-content/uploads/2025/06/icon-instagram.svg) center / contain no-repeat;
	font-size: 0;
	line-height: 0;
	color: transparent;
	overflow: hidden;
}
.site-header__toggle {
	display: none;
	position: relative;
	width: 48px;
	height: 48px;
	padding: 0;
	margin-right: -8px;
	background: none;
	border: 0;
	cursor: pointer;
}
.site-header__toggle-lines,
.site-header__toggle-lines::before,
.site-header__toggle-lines::after {
	position: absolute;
	left: 8px;
	width: 32px;
	height: 2px;
	background: var(--gold);
	transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.site-header__toggle-lines { top: 23px; }
.site-header__toggle-lines::before,
.site-header__toggle-lines::after { content: ""; left: 0; }
.site-header__toggle-lines::before { top: -8px; }
.site-header__toggle-lines::after { top: 8px; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-lines { background: transparent; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-lines::before { top: 0; transform: rotate(45deg); background: var(--gold); }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-lines::after { top: 0; transform: rotate(-45deg); background: var(--gold); }

@media (max-width: 999px) {
	.site-header__inner { min-height: 72px; }
	.site-header__logo img { width: 72px; }
	.site-header__toggle { display: block; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: -24px;
		right: -24px;
		background: var(--navy);
		padding: 8px 24px 28px;
		border-top: 1px solid rgba(178, 153, 78, .35);
		max-height: calc(100vh - 72px);
		overflow-y: auto;
	}
	.nav-open .site-nav { display: block; }
	.site-nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
	.site-nav a { font-size: 18px; min-height: 44px; padding: 10px 0; }
	.site-nav .menu-item-351 a { min-height: 44px; }
}

/* ---------- Content ---------- */
#ajax-content-wrap { overflow-x: clip; }
/* Solid page background (replaces the paper texture image) */
body #ajax-content-wrap .container-wrap,
body #ajax-content-wrap .container-wrap:has(> .main-content) {
	background-image: none;
	background-color: #f0ebe1;
}
.container-wrap { display: block; }
.container.main-content { max-width: none; padding: 0; margin: 0; }
#ajax-content-wrap .container-wrap > .container.main-content { padding-bottom: clamp(48px, 7.5vw, 117px); }
.tpm-row { position: relative; display: flow-root; }
.tpm-row > .row_col_wrap_12 { width: 100%; }
.wpb_wrapper > :last-child { margin-bottom: 0; }
/* Same image behaviour as under WPBakery (where content images had no srcset). */
.wpb_row .col img:not([data-no-fit]) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tpm-entry {
	width: min(100% - 48px, 860px);
	margin: 0 auto;
	padding: 64px 0;
	color: #333;
	font-size: 16px;
	line-height: 1.75;
}

/* Tighter line height for the gold item headings */
h2.p-ingredients__item-header-text,
h2.p-reason__item-header-text,
.p-kamiawa__item-header-text {
	line-height: 1.3;
}
.wpb_row h2.c-section-title {
	line-height: 1.3;
}
/* Emblem behind section titles: same shape, recoloured to a tone just darker than the background */
.wpb_row h2.c-section-title {
	position: relative;
	isolation: isolate;
	background-image: none;
}
.wpb_row h2.c-section-title::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: 4em;
	aspect-ratio: 836 / 781;
	transform: translate(-50%, -50%);
	background-color: #ddd4c1;
	-webkit-mask: url(/wp-content/uploads/2025/05/pattern-b.webp) center / contain no-repeat;
	mask: url(/wp-content/uploads/2025/05/pattern-b.webp) center / contain no-repeat;
	pointer-events: none;
}

/* "KAMIAWA" lead word */
.p-kamiawa__item-header-lead {
	display: block;
	margin-bottom: .1em;
	font-size: 1.5em;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.2;
}

/* Store-list note under the map: light footnote instead of a solid navy box */
#map .p-map__footer {
	background: transparent;
	color: #4a4a4a;
	border-radius: 0;
	border-top: 0;
	padding: 8px 8px 0;
	text-align: center;
}
#map .p-map__footer .p-map__footer-text {
	color: #4a4a4a;
	font-size: 13px;
	line-height: 1.8;
	letter-spacing: .01em;
}

/* ---------- Hero (2026 key visual) ---------- */
.tpm-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: min(56.25vw, calc(100svh - var(--hdr-h)));
	min-height: 480px;
	background-color: #0a1d52;
	background-image: var(--hero-sky);
	background-position: center bottom;
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
}
.tpm-hero__stage {
	position: relative;
	height: 100%;
	aspect-ratio: 16 / 9;
	max-width: 100%;
	margin: 0 auto;
}
.tpm-hero__tagline {
	position: absolute;
	top: 7%;
	left: 4.5%;
	z-index: 2;
	margin: 0;
	color: #fff;
}
.tpm-hero__tagline-en {
	display: block;
	font-family: var(--font-head, Georgia, serif);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(26px, 2.7vw, 46px);
	line-height: 1.2;
	letter-spacing: .02em;
}
.tpm-hero__tagline-ja {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: .55em;
	font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	font-weight: 500;
	font-size: clamp(14px, 1.3vw, 22px);
	letter-spacing: .2em;
}
.tpm-hero__tagline-ja::before {
	content: "";
	flex: 0 0 auto;
	width: 5.2em;
	height: 1px;
	background: currentColor;
}
.tpm-hero__logo {
	position: absolute;
	top: 51%;
	left: 19%;
	z-index: 1;
	width: 22.5%;
	transform: translateY(-50%);
}
.tpm-hero__glass {
	position: absolute;
	top: 13%;
	left: 60.25%;
	z-index: 1;
	width: 23.5%;
}
.wpb_row .col .tpm-hero img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}
@media (max-width: 767px) {
	.tpm-hero { height: auto; min-height: 0; }
	.tpm-hero__stage { height: auto; aspect-ratio: 4 / 5; width: 100%; }
	.tpm-hero__tagline { top: 5.5%; left: 6%; }
	.tpm-hero__tagline-en { font-size: clamp(22px, 6.4vw, 30px); }
	.tpm-hero__tagline-ja { font-size: clamp(12px, 3.4vw, 15px); gap: 10px; }
	.tpm-hero__logo { top: 60%; left: 8%; width: 37%; }
	.tpm-hero__glass { top: 36%; left: 56%; width: 37%; }
}

/* KAMIAWA on phones: the glass starts just below the text (no large empty gap) */
@media (max-width: 768px) {
	#kamiawa .p-kamiawa__content {
		aspect-ratio: auto;
		padding-bottom: 84%;
	}
}

/* Phones: slightly larger headings */
@media (max-width: 768px) {
	.wpb_row h2.c-section-title { font-size: 28px; }
	.wpb_row h2.p-ingredients__item-header-text,
	.wpb_row h2.p-reason__item-header-text,
	.wpb_row h2.p-kamiawa__item-header-text { font-size: 23px; }
}

/* ---------- Age gate (2026 design) ---------- */
.age-gate__background-color { background: #01012f !important; opacity: 1 !important; }
.age-gate__background {
	background: linear-gradient(rgba(1, 1, 47, .2), rgba(1, 1, 47, .5)), url(/wp-content/uploads/2026/11/tpm-hero-sky-scaled.jpg) center bottom / cover no-repeat !important;
	opacity: 1 !important;
}
.age-gate__wrapper .age-gate {
	width: calc(100% - 32px) !important;
	max-width: 440px !important;
	height: auto !important;
	max-height: calc(100% - 32px);
	overflow-y: auto;
	margin: auto !important;
	align-self: center !important;
	padding: 44px 40px 34px !important;
	background: rgba(1, 1, 40, .74) !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(210, 184, 108, .45) !important;
	border-radius: 4px !important;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35) !important;
	color: #fff !important;
	text-align: center;
}
.age-gate__heading { margin: 0 0 26px !important; }
.age-gate__heading-title--logo {
	display: block;
	width: 180px !important;
	max-width: 60% !important;
	height: auto !important;
	margin: 0 auto !important;
}
.age-gate__headline {
	margin: 0 0 6px !important;
	font-family: var(--font-head, Georgia, serif) !important;
	font-weight: 600 !important;
	font-size: 30px !important;
	line-height: 1.25 !important;
	letter-spacing: .04em !important;
	color: #d2b86c !important;
}
.age-gate__subheadline {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--font-body, Georgia, serif) !important;
	font-size: 15px !important;
	color: rgba(255, 255, 255, .85) !important;
}
.age-gate__form-elements {
	display: grid !important;
	grid-template-columns: 1fr 1fr 1.3fr;
	gap: 10px;
	margin: 22px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.age-gate__form-section { margin: 0 !important; padding: 0 !important; width: auto !important; }
.age-gate__input {
	width: 100% !important;
	height: 50px !important;
	padding: 0 8px !important;
	background: rgba(255, 255, 255, .06) !important;
	border: 1px solid rgba(255, 255, 255, .45) !important;
	border-radius: 2px !important;
	color: #fff !important;
	font-family: var(--font-body, Georgia, serif) !important;
	font-size: 17px !important;
	text-align: center;
	letter-spacing: .04em;
}
.age-gate__input::placeholder { color: rgba(255, 255, 255, .65) !important; opacity: 1; }
.age-gate__input:focus {
	outline: none !important;
	border-color: #d2b86c !important;
	box-shadow: 0 0 0 2px rgba(210, 184, 108, .35) !important;
}
.age-gate__submit { margin-top: 24px !important; }
.age-gate__wrapper button.age-gate__button {
	min-width: 180px;
	padding: 15px 44px !important;
	background: #c9ad5f !important;
	background-color: #c9ad5f !important;
	border: 0 !important;
	border-radius: 2px !important;
	color: #01012f !important;
	font-family: var(--font-body, Georgia, serif) !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	letter-spacing: .18em !important;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease;
}
.age-gate__wrapper button.age-gate__button:hover,
.age-gate__wrapper button.age-gate__button:focus-visible { background: #dcc27a !important; background-color: #dcc27a !important; }
.age-gate__errors, .age-gate__error { color: #ffb4a8 !important; font-size: 14px !important; }
.age-gate__additional-information { margin-top: 22px !important; }
.age-gate__additional-information p {
	margin: 0 !important;
	font-family: var(--font-body, Georgia, serif) !important;
	font-size: 13px !important;
	line-height: 1.7 !important;
	color: rgba(255, 255, 255, .7) !important;
}
@media (max-width: 480px) {
	.age-gate__wrapper .age-gate { padding: 34px 22px 28px !important; }
	.age-gate__headline { font-size: 26px !important; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #e4e4ec; }
.site-footer__inner {
	width: min(100% - 48px, var(--wrap));
	margin: 0 auto;
	padding: 30px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__logo { width: 56px; height: auto; }
.site-footer__brand p { margin: 0; font-size: 13px; line-height: 2; color: #e4e4ec; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.site-footer__drinksmart { width: 106px; height: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 40px; list-style: none; margin: 0; padding: 0; }
.site-footer__nav a {
	display: inline-block;
	min-height: 24px;
	padding: 2px 0;
	font-size: 14px;
	color: #e4e4ec;
	text-decoration: none;
}
.site-footer__nav a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 767px) {
	.site-footer__inner { flex-direction: column; align-items: flex-start; padding: 28px 0 96px; }
	.site-footer__links { gap: 16px 28px; }
	.site-footer__nav { gap: 8px 28px; }
}

/* ---------- Back to top ---------- */
.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 900;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--navy);
	color: var(--gold-light);
	border: 1px solid var(--gold);
	border-radius: 50%;
	font-size: 20px;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
