/* ================================================================
   Pana Puri — site shell: minimal top bar, hamburger panel, footer
   Loaded on every front-end page. Colours are the site CI and are
   locked with !important because the theme / Elementor kit set bare
   `a`, `p` and heading colours that would otherwise leak in.
   ================================================================ */
.pana-top, .pana-menu, .pana-bottom {
	--ps-ink: #382D16;
	--ps-gold: #A7893A;
	--ps-gold-text: #7A6229;
	--ps-paper: #F8F8F8;
	--ps-muted: #6B6152;
	--ps-line: rgba(56, 45, 22, .10);
	--ps-sans: "Anuphan", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
	--ps-serif: "Cormorant Garamond", "Cardo", Georgia, serif;
	font-family: var(--ps-sans);
	box-sizing: border-box;
}
.pana-top *, .pana-menu *, .pana-bottom * { box-sizing: border-box; }

/* sticky footer: the bottom bar sits at the very end of the page even when
   the content is short */
body.pana-shell { display: flex; flex-direction: column; min-height: 100vh; }
body.pana-shell > .pana-bottom { margin-top: auto; }

/* ---------- brand logo ---------- */
.pana-brand,
.pana-brand:visited,
.pana-brand:hover {
	display: inline-flex; align-items: center;
	line-height: 0;
	text-decoration: none !important;
	border: 0 !important; box-shadow: none !important;
}
.pana-logo {
	display: block;
	height: 26px; width: auto; max-width: none;
	margin: 0; padding: 0; border: 0;
}
.pana-brand-sm .pana-logo { height: 20px; }
@media (max-width: 640px) {
	.pana-logo { height: 22px; }
	.pana-brand-sm .pana-logo { height: 17px; }
}

/* ---------- top bar ---------- */
.pana-top {
	position: relative; z-index: 50;
	background: transparent;
	border-bottom: 1px solid var(--ps-line);
}
.pana-top-inner {
	max-width: 1140px; margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem);
	height: 64px;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (max-width: 640px) { .pana-top-inner { height: 56px; } }

/* hamburger: two thin bars */
.pana-burger, .pana-menu-close {
	appearance: none; -webkit-appearance: none;
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	margin: 0; padding: 10px;
	width: 44px; height: 44px;
	display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
	cursor: pointer; border-radius: 50%;
	color: var(--ps-ink) !important;
	transition: background-color .18s ease;
}
.pana-burger:hover, .pana-menu-close:hover { background-color: rgba(56, 45, 22, .06) !important; }
.pana-burger:focus-visible, .pana-menu-close:focus-visible { outline: 2px solid var(--ps-gold); outline-offset: 2px; }
.pana-burger-bar {
	display: block; width: 22px; height: 1.5px;
	background: currentColor; border-radius: 2px;
	transition: transform .22s ease;
}
/* close button: the two bars become an X */
.pana-menu-close { gap: 0; }
.pana-menu-close .pana-burger-bar:first-child { transform: translateY(.75px) rotate(45deg); }
.pana-menu-close .pana-burger-bar:last-child  { transform: translateY(-.75px) rotate(-45deg); }

/* ---------- menu panel ---------- */
.pana-menu[hidden] { display: none !important; }
.pana-menu {
	position: fixed; inset: 0; z-index: 99999;
	background: var(--ps-paper);
	color: var(--ps-ink);
	overflow-y: auto; -webkit-overflow-scrolling: touch;
	opacity: 0; transition: opacity .2s ease;
}
.pana-menu.is-open { opacity: 1; }
.admin-bar .pana-menu { top: 32px; }
@media (max-width: 782px) { .admin-bar .pana-menu { top: 46px; } }
html.pana-menu-open, html.pana-menu-open body { overflow: hidden !important; }

.pana-menu-bar { border-bottom: 1px solid var(--ps-line); }
.pana-menu-body {
	max-width: 1140px; margin: 0 auto;
	padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 6vw, 4rem);
	display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem);
}
.pana-menu-body ul { list-style: none; margin: 0; padding: 0; }
.pana-menu-body li { margin: 0; padding: 0; }

.pana-menu-primary a,
.pana-menu-primary a:visited {
	display: block;
	padding: .35em 0;
	font-family: var(--ps-sans) !important;
	font-weight: 300 !important;
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	line-height: 1.3;
	color: var(--ps-ink) !important;
	text-decoration: none !important;
	transition: color .15s ease, padding-left .15s ease;
}
.pana-menu-primary a:hover { color: var(--ps-gold-text) !important; padding-left: .25em; }
.pana-menu-primary a[aria-current="page"] { color: var(--ps-gold-text) !important; font-weight: 400 !important; }

.pana-menu-label {
	margin: .6rem 0 .9rem !important;
	font-family: var(--ps-sans) !important;
	font-size: .78rem !important; font-weight: 500 !important;
	letter-spacing: .22em;
	color: var(--ps-gold-text) !important;
}
.pana-menu-cats a,
.pana-menu-cats a:visited {
	display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
	padding: .55rem 0;
	border-bottom: 1px solid var(--ps-line);
	font-family: var(--ps-sans) !important;
	font-weight: 400 !important;
	font-size: 1.02rem;
	line-height: 1.4;
	color: var(--ps-ink) !important;
	text-decoration: none !important;
	transition: color .15s ease;
}
.pana-menu-cats li:last-child a { border-bottom: 0; }
.pana-menu-cats a:hover { color: var(--ps-gold-text) !important; }
.pana-menu-cats a[aria-current="page"] { color: var(--ps-gold-text) !important; font-weight: 500 !important; }
.pana-menu-count { font-size: .8rem; color: var(--ps-muted) !important; flex: 0 0 auto; }

.pana-menu-foot {
	grid-column: 1 / -1;
	display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem;
	padding-top: clamp(1.5rem, 4vw, 2.5rem);
	border-top: 1px solid var(--ps-line);
}
.pana-menu-cta,
.pana-menu-cta:visited {
	display: inline-block;
	padding: .8rem 1.8rem;
	border-radius: 999px;
	background-color: var(--ps-gold) !important;
	color: #fff !important;
	font-family: var(--ps-sans) !important;
	font-size: 1.2rem !important; font-weight: 700 !important;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .15s ease;
}
.pana-menu-cta:hover { background-color: var(--ps-ink) !important; color: #fff !important; }
.pana-menu-phone,
.pana-menu-phone:visited {
	font-family: var(--ps-sans) !important;
	font-size: 1.05rem; font-weight: 500;
	letter-spacing: .04em;
	color: var(--ps-ink) !important;
	text-decoration: none !important;
}
.pana-menu-phone:hover { color: var(--ps-gold-text) !important; }

@media (max-width: 860px) {
	.pana-menu-body { gap: 2.2rem; }
	.pana-menu-primary a { font-size: clamp(1.6rem, 7vw, 2rem); }
}

/* ---------- footer ---------- */
/* Solid band in the same colour as the closing "สนใจถวายน้ำปานะ" section, so
   on the home page the two read as one block. */
.pana-bottom {
	--ps-band: #998860;
	background: var(--ps-band) !important;
	border-top: 0;
}
.pana-bottom-inner {
	max-width: 1140px; margin: 0 auto;
	padding: 1.5rem clamp(1rem, 4vw, 2rem);
	display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 1rem;
	min-width: 0;
}
.pana-bottom .pana-brand { flex: 0 0 auto; }
.pana-copy {
	flex: 1 1 auto; min-width: 0;
	margin: 0 !important;
	font-family: var(--ps-sans) !important;
	font-size: .88rem !important; font-weight: 500 !important;
	line-height: 1.4;
	letter-spacing: .02em;
	color: #fff !important;
	text-align: right;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 640px) {
	.pana-bottom-inner { padding: 1.15rem 1rem; gap: .8rem; }
	/* stays beside the logo; a long company name wraps to a second line instead of being cut */
	.pana-copy { font-size: 12.5px !important; letter-spacing: 0; line-height: 1.35; white-space: normal; overflow: visible; text-overflow: clip; }
}

/* ---------------------------------------------------------------- */
/* v1.24.0 — larger, easier-to-read menu panel                       */
/* ---------------------------------------------------------------- */
.pana-menu-primary a,
.pana-menu-primary a:visited {
	font-size: clamp(2rem, 3.8vw, 2.9rem);
	font-weight: 400 !important;
	padding: .4em 0;
}
.pana-menu-primary a[aria-current="page"] { font-weight: 500 !important; }
.pana-menu-cta, .pana-menu-cta:visited { font-size: 1.3rem !important; padding: .95rem 2.1rem; }
.pana-menu-phone, .pana-menu-phone:visited { font-size: 1.25rem; }
@media (max-width: 860px) {
	.pana-menu-primary a { font-size: clamp(1.85rem, 8vw, 2.3rem); }
}
