/*
Theme Name: MB
Theme URI: https://example.com/mb
Author: MB
Author URI: https://example.com
Description: Standalone escort directory theme, child of BlankSlate. Dark luxury, modern editorial design. 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: mb
Tags: one-column, custom-menu, featured-images, translation-ready
*/

:root {
	--ink:        #0b0b0c;
	--ink-2:      #141412;
	--surface:    rgba(255, 255, 255, .035);
	--surface-2:  #1c1a17;
	--line:       rgba(183, 110, 121, .16);
	--line-gold:  rgba(183, 110, 121, .4);

	--text:       #f3efe6;
	--text-dim:   #b4ab9d;
	--text-faint: #726a5e;

	--gold:       #b76e79;
	--gold-deep:  #8f525c;
	--gold-soft:  rgba(183, 110, 121, .12);

	--secondary:      #e0485c;
	--secondary-deep: #b5323f;

	--tg:         #2aabee;

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

	--shell:  1440px;
	--radius: 0px;
	--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;
	-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(--gold); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--text); }

strong, b { font-weight: 600; }

::selection { background: var(--gold); color: var(--ink); }

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

h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 500;
	line-height: 1.1;
	color: var(--text);
	margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }

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(60px, 9vw, 120px) 0; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--line { border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 4.4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .45em; }

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

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

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

.rule {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 0;
}

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

.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-deep); color: var(--ink); }

.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(11, 11, 12, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

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

#branding a.brand {
	display: inline-flex;
	align-items: baseline;
	gap: .5em;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.3rem;
	letter-spacing: .02em;
	color: var(--text);
}

.brand__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); align-self: center; }
.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(22px, 3vw, 44px); list-style: none; margin: 0; padding: 0; }
.masthead__nav a { font-size: .74rem; letter-spacing: .14em; 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(320px, 86vw);
	background: var(--ink-2);
	border-left: 1px solid var(--line);
	padding: 100px 34px 34px;
	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-weight: 600; font-size: 1.2rem; color: var(--text); }

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

.hero {
	position: relative;
	padding: clamp(130px, 15vw, 190px) 0 clamp(56px, 7vw, 88px);
	text-align: center;
}

.hero .shell { max-width: 780px; }
.hero .lede { max-width: 58ch; margin: .9em auto 0; }

.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1px;
	background: var(--line);
}

.tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px 20px;
	background: var(--ink);
	color: var(--text);
	text-align: center;
	transition: background .3s var(--ease), color .3s var(--ease);
}

.tile:hover { background: var(--surface-2); color: var(--gold); }
.tile__name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.tile__count { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
}

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

.girl {
	background: var(--ink);
	display: flex;
	flex-direction: column;
}

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

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

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

.girl__photo--resting img { filter: grayscale(90%) brightness(.5); }

.girl__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--secondary);
	border: 1px solid var(--secondary-deep);
	color: #fff;
	font-size: .62rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: .45em .85em;
}

.girl__info {
	padding: 22px 22px 26px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.girl__name {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: .2em;
}

.girl__area {
	font-size: .76rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: .9em;
}

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

.girl__tags span {
	font-size: .68rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-dim);
	border: 1px solid var(--line);
	padding: .3em .75em;
}

.girl__tabs {
	display: flex;
	gap: 1px;
	background: var(--line);
	margin-top: auto;
}

.girl__tab {
	flex: 1;
	padding: .8em .6em;
	border: 0;
	background: var(--surface);
	font-family: var(--sans);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-align: center;
	color: var(--text-dim);
	cursor: pointer;
	transition: background .25s, color .25s;
}

.girl__tab:hover { color: var(--gold); }

.girl__tab[aria-selected="true"] {
	background: var(--gold);
	color: var(--ink);
}

.girl__panel {
	padding-top: 16px;
	font-size: .85rem;
	line-height: 1.6;
	color: var(--text-dim);
	overflow-x: auto;
}

.girl__panel[hidden] { display: none; }

.girl__panel > * + * { margin-top: .6em; }
.girl__panel b, .girl__panel strong { color: var(--gold); }

.girl__panel table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.girl__panel table th, .girl__panel table td {
	padding: 8px 4px;
	text-align: left;
	border-bottom: 1px solid var(--line);
}
.girl__panel table th { color: var(--gold); font-weight: 600; }

.girl-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	padding-block: clamp(36px, 5vw, 56px);
	border-bottom: 1px solid var(--line);
}

.girl-row:first-child { padding-top: 0; }
.girl-row:last-child { border-bottom: 0; padding-bottom: 0; }

.girl-row__photo { order: 1; position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--surface-2); }
.girl-row__info { order: 2; }

.girl-row--reverse .girl-row__photo { order: 2; }
.girl-row--reverse .girl-row__info { order: 1; }

.girl-row__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter .4s var(--ease);
}

.girl-row__photo--resting img { filter: grayscale(90%) brightness(.5); }

.girl-row__name { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: .2em; }

.girl-row__area {
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 1.1em;
}

.girl-row__tabs {
	display: flex;
	gap: 10px;
	margin: 1.4em 0 0;
}

.girl-row__tab {
	flex: 1;
	padding: 1em 1.2em;
	border: 2px solid var(--gold);
	background: transparent;
	font-family: var(--sans);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-align: center;
	color: var(--gold);
	cursor: pointer;
	transition: background .25s, color .25s;
}

.girl-row__tab:hover { background: var(--gold-soft); }

.girl-row__tab[aria-selected="true"] {
	background: var(--gold);
	color: var(--ink);
}

@media (max-width: 900px) {
	.girl-row { grid-template-columns: 1fr; }
	.girl-row__photo, .girl-row--reverse .girl-row__photo { order: 1; }
	.girl-row__info, .girl-row--reverse .girl-row__info { order: 2; }
}

.rich { max-width: 72ch; }
.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: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.rich table th { color: var(--gold); font-family: var(--display); font-weight: 600; letter-spacing: .02em; }

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

.hn-fab__toggle {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--gold);
	background: var(--ink);
	color: var(--gold);
	box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7);
}

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

.foot-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: clamp(28px, 4vw, 54px);
	padding-block: clamp(48px, 6vw, 76px);
}

.foot-brand p { color: var(--text-dim); font-size: .92rem; max-width: 42ch; margin-top: 1em; font-weight: 300; }
.foot-grid h4 { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); 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: .9rem; }
.foot-grid ul a:hover { color: var(--gold); }

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

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