/* ==========================================================================
   PerfectDesign — site additions
   Linked on every page. Extends css/screen.css without altering mirror classes.
   ========================================================================== */

/* --- Text logo (replaces the source site's SVG/PNG wordmark) -------------- */
.site-logo-text {
	display: inline-block;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-weight: 700;
	font-size: 2.6rem;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #141414;
	text-decoration: none;
	text-transform: none;
}

/* The source site centres an <img> wordmark with margin:0 auto. Our logo is
   text, so centre the wrapping block/heading instead. */
.hero-content-logo {
	text-align: center;
}

.hero-content-logo h1,
.footer-logo h1 {
	margin: 0;
	padding: 0;
	line-height: 1;
}

/* Centre the logo with auto margins so it stays centred even if a browser
   treats the wrapping heading as a full-width block (the source used an <img>
   with margin:0 auto, which is inherently centred). */
.hero-content-logo .site-logo-text {
	display: block;
	width: max-content;
	margin: 0 auto;
}

/* The footer sits on a dark background, so the text logo must invert there. */
.footer-logo .site-logo-text {
	display: block;
	width: max-content;
	margin: 0 auto;
	color: #fff;
}


.site-logo-text span {
	font-weight: 400;
	color: #6b6b6b;
}

.global-footer .site-logo-text,
.footer-logo .site-logo-text {
	color: #ffffff;
}

.footer-logo .site-logo-text span {
	color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
	.site-logo-text { font-size: 2rem; }
}

/* --- Sticky navigation ----------------------------------------------------
   The nav strip is pinned to the top of the viewport once the page scrolls
   past it (js/nav-sticky.js adds .is-fixed). Desktop only: on mobile the
   existing slide-in drawer is used instead.
   -------------------------------------------------------------------------- */
.nav-sticky-spacer {
	height: 0;
	overflow: hidden;
}

@media (min-width: 801px) {
	#nav-menu.is-fixed {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 900;
		width: 100%;
		background-color: #fff;
		border-bottom: 1px solid rgba(20, 20, 20, 0.08);
		box-shadow: 0 6px 24px rgba(20, 20, 20, 0.06);
		animation: pd-nav-drop 0.28s ease both;
	}

	#nav-menu.is-fixed .top-nav-menu {
		max-width: var(--max-width-global-wrap);
		margin: 0 auto;
		padding: 1.8rem var(--margin-wrap-left-right) 1.8rem;
	}

	#nav-menu.is-fixed .top-nav-menu li a {
		color: #141414;
	}
}

@keyframes pd-nav-drop {
	from { transform: translateY(-100%); opacity: 0.5; }
	to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	#nav-menu.is-fixed { animation: none; }
}

/* --- Article key facts box ------------------------------------------------ */
.key-facts {
	margin: 32px 0;
	padding: 24px 28px;
	background: #f7f6f3;
	border-left: 4px solid #141414;
	border-radius: 6px;
}

.key-facts h3 {
	margin: 0 0 12px;
	font-size: 1.6rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.key-facts ul {
	margin: 0;
	padding-left: 20px;
}

.key-facts li {
	margin: 6px 0;
	font-size: 1.5rem;
	line-height: 1.6;
}

/* --- Pull quote ----------------------------------------------------------- */
.post-content blockquote.pull-quote {
	margin: 40px 0;
	padding: 8px 0 8px 28px;
	border-left: 4px solid #141414;
	font-size: 2.2rem;
	line-height: 1.4;
	font-style: italic;
	font-weight: 400;
	color: #141414;
}

.post-content blockquote.pull-quote p {
	margin: 0;
	font-size: inherit;
}

/* --- Article share / bookmark toolbar ------------------------------------ */
.post-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 24px 0 8px;
}

.post-tools button,
.post-tools a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid #141414;
	border-radius: 40px;
	background: transparent;
	color: #141414;
	font-size: 1.4rem;
	font-family: inherit;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.post-tools button:hover,
.post-tools a:hover {
	background: #141414;
	color: #ffffff;
}

.post-tools button[aria-pressed="true"] {
	background: #141414;
	color: #ffffff;
}

.post-tools svg { width: 16px; height: 16px; }

/* --- Search overlay ------------------------------------------------------- */
.pd-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	background: rgba(255, 255, 255, 0.98);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	padding: 6vh 5vw;
	overflow-y: auto;
}

.pd-search-overlay.is-open { display: block; }

.pd-search-inner { max-width: 760px; margin: 0 auto; }

.pd-search-close {
	float: right;
	border: 0;
	background: transparent;
	font-size: 3rem;
	line-height: 1;
	cursor: pointer;
	color: #141414;
}

.pd-search-overlay h2 {
	margin: 0 0 20px;
	font-size: 2.4rem;
}

.pd-search-field {
	width: 100%;
	padding: 16px 18px;
	font-size: 1.8rem;
	font-family: inherit;
	border: 1px solid #141414;
	border-radius: 8px;
	outline: none;
}

.pd-search-results { margin: 20px 0 0; padding: 0; list-style: none; }

.pd-search-results li { border-bottom: 1px solid #e3e3e3; }

.pd-search-results a {
	display: block;
	padding: 14px 4px;
	color: #141414;
	text-decoration: none;
}

.pd-search-results a:hover { background: #f7f6f3; }

.pd-search-results strong { display: block; font-size: 1.6rem; }
.pd-search-results small { color: #6b6b6b; font-size: 1.3rem; }
.pd-search-empty { color: #6b6b6b; font-size: 1.5rem; margin-top: 16px; }

body.pd-no-scroll { overflow: hidden; }

/* --- Newsletter form (injected into footer) ------------------------------- */
.pd-newsletter {
	margin: 24px 0 0;
	max-width: 520px;
}

.pd-newsletter h3 {
	color: #ffffff;
	font-size: 1.8rem;
	margin: 0 0 6px;
}

.pd-newsletter p {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.4rem;
	margin: 0 0 12px;
}

.pd-newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }

.pd-newsletter input[type="email"] {
	flex: 1 1 220px;
	min-width: 0;
	padding: 12px 14px;
	font-size: 1.5rem;
	font-family: inherit;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 40px;
	background: transparent;
	color: #ffffff;
	outline: none;
}

.pd-newsletter input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }

.pd-newsletter button {
	padding: 12px 24px;
	font-size: 1.5rem;
	font-family: inherit;
	border: 1px solid #ffffff;
	border-radius: 40px;
	background: #ffffff;
	color: #141414;
	cursor: pointer;
	line-height: 1;
}

.pd-newsletter button:hover { background: transparent; color: #ffffff; }

.pd-newsletter-msg { margin-top: 10px; font-size: 1.4rem; }
.pd-newsletter-msg.is-error { color: #ffb4b4; }
.pd-newsletter-msg.is-ok { color: #b8e6c0; }

/* --- Cookie-free utility --------------------------------------------------- */
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* --- Footer (four-column reference layout) -------------------------------- */
/* The footer now sits in normal flow after the content (no fixed reveal),
   so the viewport-height spacer used by the mirror theme is no longer needed. */
.global-content {
	padding-bottom: 0;
}

.pd-footer.global-footer {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
}

.pd-footer-wrap {
	max-width: var(--max-width-global-wrap);
	margin: 0 auto;
	padding: 7rem var(--margin-wrap-left-right) 0;
	box-sizing: border-box;
}

.pd-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 4rem;
}

.pd-footer-logo {
	display: inline-block;
	margin-bottom: 2.4rem;
	font-family: var(--font-family-one);
	font-size: 3.2rem;
	font-weight: var(--font-weight-one-bold);
	line-height: 1;
	letter-spacing: -0.02em;
	color: #ffffff;
	text-decoration: none;
}

.pd-footer-desc {
	max-width: 34rem;
	margin: 0 0 2.4rem;
	font-size: 1.5rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.7);
}

.pd-footer-email {
	font-size: 1.5rem;
	color: var(--ghost-accent-color);
	text-decoration: none;
	word-break: break-word;
}

.pd-footer-email:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pd-footer-col h3 {
	margin: 0 0 2.2rem;
	font-family: var(--font-family-one);
	font-size: 1.2rem;
	font-weight: var(--font-weight-one-bold);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffffff;
}

.pd-footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pd-footer-col li {
	margin-bottom: 1.2rem;
	font-size: 1.5rem;
	line-height: 1.5;
}

.pd-footer-col a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.pd-footer-col a:hover {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pd-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	margin-top: 6rem;
	padding: 2.4rem 80px 2.4rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 1.3rem;
	color: rgba(255, 255, 255, 0.6);
}

.pd-footer-copy {
	margin: 0;
}

.pd-footer-copy a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.pd-footer-copy a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pd-footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 2.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pd-footer-legal a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
}

.pd-footer-legal a:hover {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Floating WhatsApp button (reference footer) */
.pd-wa {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 950;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #25d366;
	color: #ffffff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-wa svg {
	width: 30px;
	height: 30px;
}

.pd-wa:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* Keep the back-to-top button clear of the WhatsApp bubble */
#scrollTop {
	bottom: 92px;
}

@media (max-width: 1024px) {
	.pd-footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
		row-gap: 4.5rem;
	}

	.pd-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.pd-footer-wrap {
		padding-top: 5rem;
		padding-bottom: 9rem; /* keep clear of the floating buttons */
	}

	.pd-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 3.5rem;
	}

	.pd-footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		margin-top: 4rem;
		padding-right: 0;
	}
}

@media (max-width: 480px) {
	.pd-footer-grid {
		grid-template-columns: 1fr;
	}

	.pd-footer-brand {
		grid-column: auto;
	}

	.pd-wa {
		right: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}

	#scrollTop {
		bottom: 80px;
	}
}
