/*
Theme Name: Genesis Wellness
Description: Theme for the Genesis Wellness dropship portal (internal slug: pepifly-theme): branded header and footer, seller landing page, full-width app layout for the portal, and a white-labelled login and admin.
Version: 1.2.1
Author: Genesis Wellness
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: pepifly-theme
*/

/*
 * Palette (contrast on --gw-surface #13161B, WCAG AA needs 4.5):
 * bone #E9E6DF 14.6 · gold #C5A059 7.4 · gold-light #DFC285 10.5 · muted #9A9FA8 6.8.
 * #6C7078 is 3.6: decoration and large text only.
 */
:root {
	--gw-bg: #07080A;
	--gw-bg-2: #0A0906;
	--gw-bg-3: #0D0F12;
	--gw-surface: #13161B;
	--gw-surface-2: #1A1E24;
	--gw-line: #272D37;
	--gw-line-soft: rgba(233, 230, 223, .07);
	--gw-text: #E9E6DF;
	--gw-muted: #9A9FA8;
	--gw-faint: #6C7078;
	--gw-gold: #C5A059;
	--gw-gold-light: #DFC285;
	--gw-gold-deep: #A9823E;
	--gw-gold-glow: rgba(197, 160, 89, .14);
	--gw-radius: 10px;
	--gw-wrap: 1240px;
	--gw-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--gw-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--gw-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--gw-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--gw-text);
	background: var(--gw-bg);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
body::before {
	/* Faint gold light behind the page. */
	content: "";
	position: fixed;
	inset: -30vh -20vw auto auto;
	width: 70vw;
	height: 80vh;
	background: radial-gradient(closest-side, rgba(197, 160, 89, .07), transparent 70%);
	pointer-events: none;
	z-index: -1;
}
img { max-width: 100%; height: auto; }
a { color: var(--gw-gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gw-gold-light); }
h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--gw-serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--gw-text); }
h1 em, h2 em, h3 em, .pt-accent { font-style: italic; color: var(--gw-gold); }
::selection { background: var(--gw-gold); color: var(--gw-bg-2); }
.pt-wrap { width: 100%; max-width: var(--gw-wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.pt-eyebrow, .pt-mono { font-family: var(--gw-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gw-gold); }

/* ---------- Header ---------- */
.pt-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(7, 8, 10, .84);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid var(--gw-line-soft);
}
.admin-bar .pt-header { top: 32px; }
.pt-header .pt-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.pt-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--gw-serif); font-weight: 600; font-size: 23px; color: var(--gw-text); letter-spacing: -.005em; white-space: nowrap; }
.pt-logo:hover { color: var(--gw-text); }
.pt-logo em { font-style: italic; font-weight: 500; color: var(--gw-gold); }
.pt-logo svg { width: 26px; height: 26px; flex: none; }
.pt-logo img { max-height: 36px; width: auto; }
.pt-nav { display: flex; align-items: center; gap: 6px; }
.pt-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.pt-nav ul a { display: inline-block; padding: 8px 12px; color: var(--gw-muted); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.pt-nav ul a:hover, .pt-nav ul .current-menu-item a { color: var(--gw-gold); }
.pt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 18px; border-radius: 7px; border: 1px solid var(--gw-gold); cursor: pointer;
	font: 600 12.5px/1.2 var(--gw-sans); letter-spacing: .09em; text-transform: uppercase;
	color: var(--gw-bg-2) !important; background: var(--gw-gold);
	transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.pt-btn:hover { background: var(--gw-gold-light); border-color: var(--gw-gold-light); transform: translateY(-1px); box-shadow: 0 10px 26px -12px rgba(197, 160, 89, .55); }
.pt-btn:focus-visible, .pt-nav a:focus-visible { outline: 2px solid var(--gw-gold-light); outline-offset: 2px; }
.pt-btn-ghost { background: transparent; color: var(--gw-text) !important; border-color: var(--gw-line); }
.pt-btn-ghost:hover { background: transparent; border-color: var(--gw-gold); color: var(--gw-gold-light) !important; box-shadow: none; }
.pt-btn-lg { padding: 15px 24px; font-size: 13px; }
.pt-btn-lg::after { content: "→"; font-size: 15px; letter-spacing: 0; }
.pt-btn-ghost.pt-btn-lg::after { content: none; }
.pt-nav .pt-btn { padding: 9px 15px; margin-left: 6px; font-size: 11.5px; }
.pt-menu-toggle { display: none; background: none; border: 1px solid var(--gw-line); border-radius: 7px; width: 40px; height: 40px; cursor: pointer; }
.pt-menu-toggle span, .pt-menu-toggle span::before, .pt-menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--gw-text); margin: 0 auto; position: relative; content: ""; }
.pt-menu-toggle span::before { position: absolute; top: -6px; }
.pt-menu-toggle span::after { position: absolute; top: 6px; }

/* ---------- Main ---------- */
.pt-main { flex: 1; display: flex; flex-direction: column; }
.pt-main > * { flex: none; }
.pt-page { padding: 44px 0 60px; }
.pt-page-title { font-size: clamp(34px, 4vw, 48px); margin-bottom: 18px; }
.pt-content { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: 14px; padding: 32px; }
.pt-content > :first-child { margin-top: 0; }
.pt-content > :last-child { margin-bottom: 0; }

/* App layout: the seller portal fills the page with no title or extra chrome. */
.pt-app { padding: 22px 0 44px; }
.pt-app .pepifly { max-width: none; }
/* Logged-out portal (log in / sign up): centre the card in the viewport. */
.pt-main > .pt-app-auth { flex: 1; display: flex; align-items: center; padding: 36px 0; }
.pt-app-auth .pf-auth { max-width: 1040px; margin: 0 auto; min-height: 460px; }

/* ---------- Landing page ---------- */
.pt-hero { position: relative; padding: 80px 0 64px; overflow: hidden; border-bottom: 1px solid var(--gw-line-soft); }
.pt-hero .pt-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pt-hero .pt-eyebrow { display: block; }
.pt-hero h1 { font-size: clamp(42px, 5.6vw, 68px); font-weight: 400; letter-spacing: -.015em; margin: 18px 0 18px; }
.pt-hero p.pt-lead { font-size: 17px; font-weight: 300; color: var(--gw-muted); max-width: 540px; margin: 0 0 30px; }
.pt-hero p.pt-lead strong { color: var(--gw-text); font-weight: 600; }
.pt-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pt-hero-proof { display: flex; gap: 8px 22px; margin-top: 26px; flex-wrap: wrap; font-family: var(--gw-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gw-gold); }
.pt-hero-proof div + div::before { content: "·"; margin-right: 22px; color: var(--gw-faint); }
.pt-hero-proof strong { font-weight: 600; color: var(--gw-gold-light); margin-right: 6px; }

.pt-mock { position: relative; border-radius: 16px; padding: 20px; background: linear-gradient(180deg, var(--gw-surface-2), var(--gw-surface)); border: 1px solid var(--gw-line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(197, 160, 89, .06); }
.pt-mock::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gw-gold), transparent); }
.pt-mock-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-family: var(--gw-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gw-muted); }
.pt-mock-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--gw-line); display: inline-block; margin-right: 5px; }
.pt-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.pt-mock-stat { background: var(--gw-bg-3); border: 1px solid var(--gw-line); border-radius: 10px; padding: 12px 14px; }
.pt-mock-stat small { display: block; font-family: var(--gw-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gw-muted); margin-bottom: 4px; }
.pt-mock-stat b { font-variant-numeric: lining-nums; font-family: var(--gw-serif); font-size: 28px; font-weight: 500; line-height: 1; color: var(--gw-text); }
.pt-mock-stat.is-grad { border-color: rgba(197, 160, 89, .45); background: linear-gradient(160deg, rgba(197, 160, 89, .16), rgba(197, 160, 89, .03)); }
.pt-mock-stat.is-grad b { color: var(--gw-gold-light); }
.pt-mock-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 9px; background: var(--gw-bg-3); border: 1px solid var(--gw-line-soft); margin-top: 8px; font-size: 13px; color: var(--gw-text); }
.pt-mock-row em { font-style: normal; font-family: var(--gw-mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: rgba(143, 217, 176, .1); color: #8FD9B0; }
.pt-mock-row em.is-blue { background: rgba(223, 194, 133, .1); color: var(--gw-gold-light); }

.pt-section { padding: 64px 0; border-bottom: 1px solid var(--gw-line-soft); }
.pt-section-head { text-align: center; max-width: 660px; margin: 0 auto 36px; }
.pt-section-head .pt-eyebrow { display: block; margin-bottom: 12px; }
.pt-section-head h2 { font-size: clamp(32px, 3.6vw, 46px); }
.pt-section-head p { color: var(--gw-muted); font-size: 16px; font-weight: 300; margin: 0; }
.pt-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; counter-reset: step; background: var(--gw-line); border: 1px solid var(--gw-line); border-radius: 14px; overflow: hidden; }
.pt-step { background: var(--gw-surface); padding: 26px 24px; position: relative; }
.pt-step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--gw-mono); font-size: 12px; letter-spacing: .16em; color: var(--gw-gold); margin-bottom: 18px; }
.pt-step h3 { font-size: 23px; font-weight: 600; margin-bottom: 8px; }
.pt-step p { color: var(--gw-muted); margin: 0; font-size: 14px; }
.pt-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pt-feature { padding: 26px; border-radius: 14px; background: var(--gw-surface); border: 1px solid var(--gw-line); transition: border-color .2s, transform .2s; }
.pt-feature:hover { border-color: rgba(197, 160, 89, .5); transform: translateY(-2px); }
.pt-feature h3 { font-size: 23px; font-weight: 600; margin-bottom: 8px; }
.pt-feature p { margin: 0; color: var(--gw-muted); font-size: 14px; }
.pt-cta { padding: 64px 0; }
.pt-cta-box { border-radius: 16px; padding: 44px 48px; background: radial-gradient(600px 260px at 100% 0%, rgba(197, 160, 89, .16), transparent 70%), var(--gw-surface); border: 1px solid rgba(197, 160, 89, .35); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.pt-cta-box h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 0 0 6px; }
.pt-cta-box p { margin: 0; color: var(--gw-muted); }

/* ---------- Footer ---------- */
.pt-footer { border-top: 1px solid var(--gw-line-soft); background: var(--gw-bg-2); padding: 24px 0; font-family: var(--gw-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gw-muted); }
.pt-footer .pt-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.pt-footer a { color: var(--gw-muted); }
.pt-footer a:hover { color: var(--gw-gold); }
.pt-footer-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ---------- 404 ---------- */
.pt-404 { text-align: center; padding: 96px 0; }
.pt-404 h1 { font-size: 120px; font-weight: 400; margin: 0; color: var(--gw-gold); font-style: italic; }
.pt-404 p { color: var(--gw-muted); }

@media (max-width: 960px) {
	.pt-hero .pt-wrap { grid-template-columns: 1fr; gap: 40px; }
	.pt-steps { grid-template-columns: repeat(2, 1fr); }
	.pt-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
	.admin-bar .pt-header { top: 46px; }
	.pt-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.pt-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--gw-bg); border-bottom: 1px solid var(--gw-line); flex-direction: column; align-items: stretch; padding: 12px 24px 18px; }
	.pt-nav.is-open { display: flex; }
	.pt-nav ul { flex-direction: column; }
	.pt-nav .pt-btn { margin: 8px 0 0; }
}
@media (max-width: 600px) {
	.pt-wrap { padding: 0 16px; }
	.pt-logo { font-size: 20px; }
	.pt-steps, .pt-features { grid-template-columns: 1fr; }
	.pt-hero { padding: 44px 0 40px; }
	.pt-section, .pt-cta { padding: 44px 0; }
	.pt-content { padding: 20px; }
	.pt-cta-box { padding: 28px 22px; }
	.pt-mock-stat b { font-size: 22px; }
	.pt-hero-proof div + div::before { display: none; }
}

/* Keep header links on one line. */
.pt-nav a { white-space: nowrap; }
