/*
Theme Name: HappyNight69 Ipoh
Theme URI: https://example.com/happynight69-ipoh
Author: HappyNight69
Author URI: https://example.com
Description: Ipoh edition of the HappyNight69 brand theme, for an Ipoh-only site on its own WordPress installation. Child theme of BlankSlate. Categories are locations and posts are girls, nationality is set with tags. All extra fields (rate, booking type, age, area copy) are ACF fields managed in wp-admin, not built into the theme. No age gate, no contact page — booking runs entirely through WhatsApp or Telegram.
Template: blankslate
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: happynight69-ipoh
Tags: one-column, custom-menu, featured-images, translation-ready
*/

:root {
	--ink:         #0d101a;
	--ink-2:       #10141f;
	--surface:     rgba(23, 28, 42, .55);
	--surface-2:   #171c2a;
	--line:        rgba(255, 255, 255, .08);
	--line-strong: rgba(255, 255, 255, .18);

	--text:        #f4f6fb;
	--text-dim:    #a8afc2;
	--text-faint:  #737b91;

	--coral:       #ff4d6e;
	--coral-deep:  #e02a52;
	--coral-soft:  rgba(255, 77, 110, .14);
	--coral-line:  rgba(255, 77, 110, .38);
	--violet:      #a78bfa;
	--lavender:    #d8d2f5;

	--live:        #34d399;

	--wa:          #25d366;
	--tg:          #2aabee;

	--display: "Sora", "Segoe UI", system-ui, sans-serif;
	--sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--shell:     1440px;
	--gut:       clamp(20px, 5vw, 44px);
	--radius:    16px;
	--radius-sm: 10px;
	--cut:       36px 4px 36px 4px;
	--cut-sm:    18px 3px 18px 3px;

	--ease: cubic-bezier(.22, 1, .36, 1);
}

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

body {
	background: var(--ink);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.nav-open {
	overflow: hidden;
}

#wrapper {
	position: relative;
	z-index: 1;
}

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

a {
	color: var(--coral);
	text-decoration: none;
	transition: color .3s var(--ease), opacity .3s var(--ease);
}

a:hover {
	color: var(--text);
}

strong, b { font-weight: 700; }
em, i { font-style: italic; }

::selection {
	background: var(--coral);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--coral);
	outline-offset: 3px;
	border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.02em;
	color: var(--text);
	margin: 0;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 300; letter-spacing: -.03em; }
h1 strong { font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.4rem); }
h4 { font-size: 1rem; letter-spacing: .01em; }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

blockquote {
	margin: 2em 0;
	padding: 1.4em 1.6em;
	border-left: 2px solid var(--coral);
	background: rgba(255, 255, 255, .03);
	color: var(--text-dim);
	font-size: 1.06rem;
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 3em 0;
}

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

.shell {
	width: 80%;
	max-width: var(--shell);
	margin-inline: auto;
}

@media (max-width: 900px) {
	.shell { width: 90%; }
}

.section {
	position: relative;
	padding: clamp(70px, 10vw, 130px) 0;
}

.section--tight { padding-block: clamp(40px, 6vw, 70px); }
.section--alt { background: rgba(255, 255, 255, .022); }
.section--line { border-block: 1px solid var(--line); }

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.mt-l { margin-top: clamp(28px, 4vw, 48px); }
.text-center { text-align: center; }

.section-head {
	max-width: 640px;
	margin-bottom: clamp(34px, 5vw, 56px);
}

.section-head--center {
	margin-inline: auto;
	text-align: center;
}

.section-head h2 { margin-bottom: .5em; }

.eyebrow {
	position: relative;
	display: inline-block;
	font-family: var(--display);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 1.3em;
	padding-bottom: .7em;
}

.eyebrow::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 1px;
	background: var(--coral);
	transform-origin: left;
}

.eyebrow--center { text-align: center; }
.eyebrow--center::after { left: 50%; transform: translateX(-50%); }

.lede {
	font-size: clamp(1.02rem, 1.4vw, 1.16rem);
	color: var(--text-dim);
	line-height: 1.75;
	font-weight: 300;
}

.neon { color: var(--coral); }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	font-family: var(--display);
	font-size: .86rem;
	font-weight: 600;
	letter-spacing: .02em;
	padding: 1em 2em;
	border: 1px solid transparent;
	border-radius: var(--cut-sm);
	cursor: pointer;
	transition: transform .35s var(--ease), background .35s var(--ease),
	            box-shadow .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
	background: var(--coral);
	color: #fff;
	box-shadow: 0 10px 30px -8px var(--coral-line);
}

.btn--primary:hover {
	background: var(--coral-deep);
	color: #fff;
}

.btn--ghost {
	border-color: var(--line-strong);
	color: var(--text);
	background: transparent;
}

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

.btn--sm { padding: .75em 1.5em; font-size: .8rem; }
.btn--block { width: 100%; }

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: clamp(24px, 3vw, 36px);
}

.header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(13, 16, 26, .82);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 18px;
}

#branding a.brand {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--text);
}

.brand__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--coral);
}

.custom-logo-link {
	display: block;
	max-width: min(160px, 45vw);
}

.masthead__nav {
	display: flex;
	flex: 1;
	justify-content: center;
}

.masthead__nav ul.menu {
	display: flex;
	gap: clamp(20px, 3vw, 40px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.masthead__nav a {
	font-family: var(--display);
	font-size: .84rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--text-dim);
}

.masthead__nav a:hover { color: var(--text); }

.masthead__cta { flex: none; }

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 26px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

.burger span {
	display: block;
	height: 2px;
	background: var(--text);
	border-radius: 1px;
}

.drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(320px, 84vw);
	background: var(--ink-2);
	border-left: 1px solid var(--line);
	padding: 100px 32px 32px;
	transform: translateX(100%);
	transition: transform .4s var(--ease);
	z-index: 50;
	overflow-y: auto;
}

.drawer.is-open { transform: translateX(0); }

.drawer ul.menu {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.drawer a {
	font-family: var(--display);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text);
}

@media (max-width: 900px) {
	.masthead__nav, .masthead__cta { display: none; }
	.burger { display: flex; }
}

.hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: center;
	padding: clamp(140px, 16vw, 200px) 0 clamp(60px, 8vw, 100px);
	overflow: hidden;
}

.hero__field {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.hero__field span {
	position: absolute;
	border-radius: 50%;
	background: var(--coral);
	opacity: 0;
}

.hero__inner {
	position: relative;
	z-index: 1;
	max-width: 900px;
}

.hero h1 {
	margin-bottom: .3em;
}

.hero h1 .word {
	display: inline-block;
}

.hero .lede {
	max-width: 60ch;
	margin-top: .6em;
}

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(28px, 5vw, 56px);
	margin-top: clamp(40px, 5vw, 64px);
	padding-top: clamp(30px, 4vw, 44px);
	border-top: 1px solid var(--line);
}

.stat__n {
	display: block;
	font-family: var(--display);
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 700;
	color: var(--text);
}

.stat__n .plus { color: var(--coral); }

.stat__l {
	display: block;
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-top: .3em;
}

.marquee {
	position: relative;
	overflow: hidden;
	border-block: 1px solid var(--line);
	padding-block: 22px;
	background: var(--surface);
}

.marquee__track {
	display: flex;
	width: max-content;
	gap: 56px;
	white-space: nowrap;
	will-change: transform;
}

.marquee__track span {
	font-family: var(--display);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--text-faint);
	display: inline-flex;
	align-items: center;
	gap: 20px;
}

.marquee__track span::after {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--coral);
}

.card {
	position: relative;
	padding: clamp(26px, 3vw, 34px);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--cut);
	transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}

.card:hover {
	border-color: var(--coral-line);
	transform: translateY(-4px);
	background: var(--surface-2);
}

.card h3 { margin-bottom: .5em; }

.card p {
	color: var(--text-dim);
	font-size: .95rem;
}

.value {
	display: flex;
	gap: 20px;
	padding-block: 22px;
	border-bottom: 1px solid var(--line);
}

.value:last-child { border-bottom: 0; }

.value__ico {
	flex: none;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	font-family: var(--display);
	font-weight: 700;
	font-size: .8rem;
	color: var(--coral);
	border: 1px solid var(--coral-line);
	border-radius: var(--cut-sm);
}

.value h4 { margin-bottom: .35em; }

.value p {
	color: var(--text-dim);
	font-size: .92rem;
}

.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
}

.tile {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--cut-sm);
	color: var(--text);
}

.tile:hover {
	border-color: var(--coral);
	color: var(--text);
}

.tile__name {
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.02rem;
}

.tile__count {
	font-size: .78rem;
	color: var(--text-faint);
}

.area-block {
	padding: clamp(28px, 3.2vw, 40px);
	margin-bottom: 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--cut);
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: clamp(26px, 4vw, 60px);
}

.area-block:last-child { margin-bottom: 0; }

.area-block__head h2 {
	font-size: clamp(1.3rem, 1.9vw, 1.7rem);
	margin-bottom: .4em;
}

.area-block__head h2 a { color: var(--text); }
.area-block__head h2 a:hover { color: var(--coral); }

.area-block__count {
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--coral);
	margin-bottom: 1.2em;
}

.area-block__empty {
	color: var(--text-dim);
	margin-bottom: 1.2em;
	max-width: 46ch;
}

.girls {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(14px, 2vw, 20px);
}

.girls--pair {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 560px;
}

.girl {
	display: grid;
	grid-template-columns: 1fr 2fr;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--cut);
	overflow: hidden;
	transition: border-color .35s var(--ease), transform .35s var(--ease);
}

.girl:hover {
	border-color: var(--coral-line);
	transform: translateY(-4px);
}

.girl__photo {
	position: relative;
	aspect-ratio: 3/4;
	background: var(--surface-2);
	overflow: hidden;
}

.girl__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.girl__new {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--coral);
	color: #fff;
	font-family: var(--display);
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: .35em .7em;
	border-radius: var(--cut-sm);
}

.girl__info {
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.girl__info h3 {
	font-size: 1.02rem;
	margin-bottom: .2em;
	color: var(--text);
}

.girl__where {
	font-size: .78rem;
	color: var(--text-faint);
	margin-bottom: .7em;
}

.girl__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: .8em;
}

.girl__tags span {
	font-size: .68rem;
	letter-spacing: .04em;
	color: var(--text-dim);
	background: rgba(255, 255, 255, .05);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: .25em .7em;
}

.girl__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: .6em;
	font-size: .78rem;
	color: var(--text-dim);
}

.girl__tabs {
	display: flex;
	gap: 8px;
	margin-top: .8em;
}

.girl__tab {
	flex: 1;
	padding: .65em .6em;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--cut-sm);
	color: var(--text-dim);
	font-family: var(--display);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .01em;
	text-align: center;
	cursor: pointer;
	transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}

.girl__tab:hover {
	border-color: var(--coral-line);
	color: var(--text);
}

.girl__tab.is-active {
	background: var(--coral);
	border-color: var(--coral);
	color: #fff;
	transform: translateY(-1px);
}

.girl__panel {
	padding-top: .7em;
	margin-top: 20px;
	margin-bottom: auto;
	font-size: .78rem;
	color: var(--text-dim);
	overflow-x: auto;
}

.girl__panel[hidden] { display: none; }

.girl__panel > * + * { margin-top: .4em; }

.girl__panel b, .girl__panel strong { color: var(--coral); }

.girl__panel table {
	width: 100%;
	border-collapse: collapse;
	font-size: .78rem;
}

.girl__panel table tr {
	font-size: 21px;
}

.girl__panel table tbody tr {
	font-size: 17px;
}

.girl__panel table thead {
	background: var(--coral);
	color: #fff;
	font-weight: 800;
}

.girl__panel table th, .girl__panel table td {
	padding: 4px 6px;
	text-align: left;
	border-bottom: 1px solid var(--line);
}

@media (max-width: 480px) {
	.girl { grid-template-columns: 110px minmax(0, 1fr); }
	.girl__info { padding: 12px 14px; }
}

.profile__grid {
	display: grid;
	grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
	gap: clamp(30px, 5vw, 70px);
	align-items: start;
}

.profile__media {
	aspect-ratio: 3/4;
	border-radius: var(--cut);
	overflow: hidden;
	background: var(--surface-2);
}

.profile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 18px;
	margin: 1.6em 0;
	padding: 20px 0;
	border-block: 1px solid var(--line);
}

.profile__facts dt {
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: .35em;
}

.profile__facts dd {
	margin: 0;
	font-family: var(--display);
	font-weight: 700;
	color: var(--text);
}

.crumbs {
	display: flex;
	gap: 10px;
	font-size: .8rem;
	color: var(--text-faint);
	margin-bottom: clamp(28px, 3vw, 44px);
}

.crumbs a { color: var(--text-faint); }
.crumbs a:hover { color: var(--coral); }

.rate-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--cut-sm);
	overflow: hidden;
}

.rate-table th, .rate-table td {
	padding: 14px 20px;
	text-align: left;
	border-bottom: 1px solid var(--line);
}

.rate-table th {
	font-family: var(--display);
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--coral);
	background: rgba(255, 77, 110, .06);
}

.rate-table td:last-child, .rate-table th:last-child { text-align: right; }
.rate-table tr:last-child td { border-bottom: 0; }
.rate-table td b { color: var(--text); font-weight: 700; }

.rate-tier {
	margin-bottom: clamp(50px, 6vw, 80px);
}

.rate-tier:last-child { margin-bottom: 0; }

.rate-tier h3 {
	margin-bottom: 1em;
}

.addons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 1.4em;
}

.addons span {
	font-size: .82rem;
	color: var(--text-dim);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: .5em 1.1em;
}

.cta {
	position: relative;
	text-align: center;
	padding: clamp(70px, 9vw, 120px) 0;
}

.cta .eyebrow, .cta h2 { text-align: center; }
.cta .lede { max-width: 560px; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

.pager {
	display: flex;
	justify-content: space-between;
	margin-top: clamp(30px, 4vw, 50px);
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: .88rem;
}

.entry__content > * + * { margin-top: 1.2em; }
.entry__content h2, .entry__content h3 { margin-top: 1.6em; }

.hn-fab {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 45;
}

.hn-fab__toggle {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: var(--cut-sm);
	background: var(--tg);
	color: #fff;
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
}

.hn-fab__toggle svg { width: 26px; height: 26px; }

.foot-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: clamp(30px, 5vw, 60px);
	padding-block: clamp(50px, 7vw, 80px);
}

.foot-brand p {
	color: var(--text-dim);
	font-size: .92rem;
	max-width: 40ch;
	margin: 1em 0;
}

.foot-social {
	display: flex;
	gap: 12px;
	margin-top: 1.2em;
}

.foot-social a {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--text-dim);
}

.foot-social a:hover { border-color: var(--coral); color: var(--coral); }

.foot-grid h4 {
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 1.2em;
}

.foot-grid ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.foot-grid ul li { margin-bottom: .7em; }
.foot-grid ul a { color: var(--text-dim); font-size: .92rem; }
.foot-grid ul a:hover { color: var(--coral); }

#copyright {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding-block: 22px;
	border-top: 1px solid var(--line);
	font-size: .8rem;
	color: var(--text-faint);
}

@media (max-width: 900px) {
	.foot-grid { grid-template-columns: 1fr; }
	.split, .profile__grid, .area-block { grid-template-columns: minmax(0, 1fr); }
	.girls--pair { max-width: none; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.hero__stats { gap: 24px; }
}
