/*
Theme Name: Elite Penang
Theme URI: https://example.com/elite-penang
Author: Elite Penang
Author URI: https://example.com
Description: Standalone Penang escort directory theme, child of BlankSlate. Placeholder brand name -- rename before launch. Categories are areas, posts are girls shown as image-only tiles with no single-post page. Telegram link, price content and services content are all set from the Theme Options page. One post per area automatically flips to a dimmed "resting" state every 5 days.
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: elite-penang
Tags: one-column, custom-menu, featured-images, translation-ready
*/

:root {
	--ink:        #120b0d;
	--ink-2:      #180f12;
	--surface:    rgba(255, 255, 255, .04);
	--surface-2:  #1e1417;
	--line:       rgba(255, 255, 255, .08);
	--line-gold:  rgba(202, 161, 93, .35);

	--text:       #2c2c2c;
	--text-dim:   #b9a9a4;
	--text-faint: #7d6a66;

	--red:        #c81e3a;
	--red-deep:   #9c1730;
	--gold:       #771d36;
	--gold-soft:  rgba(202, 161, 93, .14);

	--tg:         #2aabee;

	--display: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

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

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

body {
	background: #FFF9F6;
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	-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: #E7A5B4; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--text); }

strong, b { font-weight: 700; }

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

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.15;
	color: #E7A5B4;
	margin: 0;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-style: italic; font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

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

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

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

.section { position: relative; padding: clamp(56px, 8vw, 100px) 0; }
.section--tight { padding-block: clamp(36px, 5vw, 60px); }
.section--alt { background: var(--surface); }
.section--line { border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .4em; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	font-family: var(--sans);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1em;
}

.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.eyebrow--center::before { display: none; }

.lede { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--text-dim); }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	font-family: var(--sans);
	font-size: .84rem;
	font-weight: 600;
	letter-spacing: .03em;
	padding: .95em 1.9em;
	border: 1px solid var(--gold);
	border-radius: 2px;
	cursor: pointer;
	transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

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

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

.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--ink); }

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

.header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(18, 11, 13, .9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

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

#branding a.brand {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-family: var(--display);
	font-style: italic;
	font-weight: 600;
	font-size: 1.2rem;
	color: var(--text);
}

.brand__dot { width: 6px; height: 6px; border-radius: 50%; background: #771d36; }
.custom-logo-link { display: block; max-width: min(160px, 45vw); }

.hero__logo { margin-bottom: 20px; }
.hero__logo .custom-logo-link { margin-inline: auto; }

.masthead__nav { display: flex; flex: 1; justify-content: center; }
.masthead__nav ul.menu { display: flex; gap: clamp(18px, 2.6vw, 36px); list-style: none; margin: 0; padding: 0; }
.masthead__nav a { font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); }
.masthead__nav a:hover { color: var(--gold); }

.masthead__cta { flex: none; }

.burger { display: none; flex-direction: column; gap: 5px; width: 24px; background: none; border: 0; cursor: pointer; padding: 0; }
.burger span { display: block; height: 1px; background: var(--text); }

.drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(300px, 84vw);
	background: var(--ink-2);
	border-left: 1px solid var(--line);
	padding: 90px 30px 30px;
	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 30px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.drawer a { font-family: var(--display); font-size: 1.1rem; color: var(--text); }

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

.hero {
	position: relative;
	padding: clamp(80px, 14vw, 70px) 0 clamp(50px, 6vw, 80px);
	text-align: center;
}
.front-page-logo {
	width: 200px;
    margin: 0 auto;
}
.hero .shell { max-width: 760px; }
.hero .lede { max-width: 56ch; margin: .8em auto 0; }

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

.tile {
	display: block;
	padding: 20px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--text);
	text-align: center;
}

.tile:hover { border-color: var(--gold); color: var(--gold); }
.tile__name { display: block; font-family: var(--display); font-style: italic; font-size: 1.05rem; }
.tile__count { display: block; font-size: .74rem; color: var(--text-faint); margin-top: .4em; }

.gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
}

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

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

.pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--ease), filter .4s var(--ease);
}

.pic:hover img { transform: scale(1.04); }

.pic__cap {
	position: absolute;
	inset: auto 0 0 0;
	padding: 20px 12px 10px;
	background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent);
	font-family: var(--display);
	font-style: italic;
	font-size: .95rem;
	text-align: center;
	color: #fff;
	pointer-events: none;
}

.pic--resting img { filter: grayscale(85%) brightness(.55); }

.pic__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0, 0, 0, .7);
	border: 1px solid var(--line-gold);
	color: var(--gold);
	font-size: .64rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: .4em .8em;
}

.rich { max-width: 74ch; }
.rich > * + * { margin-top: 1.2em; }
.rich h2, .rich h3 { margin-top: 1.6em; }
.rich table { width: 100%; border-collapse: collapse; }
.rich table th, .rich table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.rich table th { color: var(--gold); font-family: var(--display); font-style: italic; font-weight: 600; }

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

.hn-fab__toggle {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--tg);
	color: #fff;
	box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .6);
}

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

.foot-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: clamp(26px, 4vw, 50px);
	padding-block: clamp(44px, 6vw, 70px);
}

.foot-brand p { color: var(--text-dim); font-size: .9rem; max-width: 40ch; margin-top: 1em; }
.foot-grid h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid ul li { margin-bottom: .65em; }
.foot-grid ul a { color: var(--text-dim); font-size: .9rem; }
.foot-grid ul a:hover { color: var(--gold); }

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

@media (max-width: 900px) {
	.foot-grid { grid-template-columns: 1fr; }
}