/*
Theme Name: Nailux
Theme URI: https://thenailux.com
Author: Nailux
Description: Marketing theme for Nailux — land, homes and rental management in Accra. Near-black surfaces, editorial serif headlines, one peach accent. Built mobile first.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: nailux
*/

/* ------------------------------------------------------------------
   Tokens
   Black and near-white do the work. Peach appears in exactly three
   places on the page — the eyebrow dot, the service numbers, and the
   live marker inside the client portal. Anywhere else dilutes it.
------------------------------------------------------------------ */

:root {
	--ink: #0a0a0b;
	--surface: #141416;
	--line: #242428;
	--white: #fff;
	--soft: #8e9398;
	--dim: #5e5e64;
	--peach: #f09c72;

	--display: "Instrument Serif", Georgia, "Times New Roman", serif;
	--body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

	--gutter: 20px;
	--max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--ink);
	color: var(--white);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, blockquote, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: 12px;
	top: 12px;
	z-index: 100;
	background: var(--white);
	color: var(--ink);
	padding: 10px 14px;
	border-radius: 8px;
}

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

/* ------------------------------------------------------------------
   Shared pieces
------------------------------------------------------------------ */

.eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--soft);
	margin-bottom: 18px;
}

.eyebrow--light { color: rgba(255, 255, 255, .7); }

.dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--peach);
	flex: none;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 22px;
	border-radius: 11px;
	border: 1px solid transparent;
	font-family: var(--body);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #ececec; }

.btn--dark { background: var(--ink); color: var(--white); }

.btn--ghost {
	background: transparent;
	color: var(--white);
	border-color: rgba(255, 255, 255, .35);
	font-weight: 400;
}

.btn--ghost:hover { border-color: rgba(255, 255, 255, .7); }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */

.site-head {
	padding: 18px 0;
	position: relative;
	z-index: 5;
}

/* On the landing page the bar sits over the photograph. */
.site-head--over {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

.site-head-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.wordmark {
	font-family: var(--display);
	font-size: 26px;
	line-height: 1;
	text-decoration: none;
	color: var(--white);
}

.wordmark img { max-height: 40px; width: auto; }

.site-nav {
	display: flex;
	align-items: center;
	gap: 20px;
}

.nav-list {
	display: none;
	gap: 22px;
	font-size: 13.5px;
}

.nav-list a {
	text-decoration: none;
	color: rgba(255, 255, 255, .8);
}

.nav-list a:hover { color: var(--white); }

.wa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .3);
	color: var(--white);
	flex: none;
}

.wa-button:hover { background: rgba(255, 255, 255, .22); }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 86vh;
	min-height: 86svh;
	padding: 120px 0 40px;
	background-color: #1c1c1f;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

/* With no photograph yet, a quiet gradient rather than a broken frame. */
.hero--noimage {
	background-image: radial-gradient(120% 80% at 70% 10%, #26262b 0%, #0a0a0b 70%);
}

.hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(10, 10, 11, .25) 0%, rgba(10, 10, 11, .55) 45%, rgba(10, 10, 11, .97) 100%);
}

.hero-inner { position: relative; }

.hero-title {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(38px, 9vw, 72px);
	line-height: 1.03;
	letter-spacing: -0.01em;
	margin-bottom: 16px;
	max-width: 15ch;
}

.hero-sub {
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .82);
	max-width: 56ch;
	margin-bottom: 26px;
}

.hero-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hero-actions .btn { width: 100%; }

/* ------------------------------------------------------------------
   Services
------------------------------------------------------------------ */

.services { padding: 56px 0 40px; }

.service-list { display: block; }

.service {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 22px 0;
	border-top: 1px solid var(--line);
}

.service-num {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .8px;
	color: var(--peach);
	padding-top: 10px;
	flex: none;
}

.service-title {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(26px, 6vw, 38px);
	line-height: 1.12;
	margin-bottom: 6px;
}

.service-desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--soft);
	max-width: 62ch;
}

/* ------------------------------------------------------------------
   Evidence
------------------------------------------------------------------ */

.evidence { padding: 28px 0 44px; }

.evidence-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.evidence-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 9px;
	background: var(--surface);
}

.evidence-item figcaption {
	font-size: 10.5px;
	color: var(--dim);
	margin-top: 7px;
}

.evidence-note {
	font-size: 13px;
	color: var(--soft);
	margin-top: 16px;
	max-width: 48ch;
}

/* ------------------------------------------------------------------
   Quote band
------------------------------------------------------------------ */

.quote-band {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 320px;
	padding: 90px 0 36px;
	background-color: #1c1c1f;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.quote-band--noimage {
	background-image: radial-gradient(100% 90% at 30% 20%, #26262b 0%, #0a0a0b 75%);
	min-height: 240px;
}

.quote-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(10, 10, 11, .2) 0%, rgba(10, 10, 11, .6) 50%, rgba(10, 10, 11, .97) 100%);
}

.quote-inner { position: relative; }

.quote-band blockquote p {
	font-family: var(--display);
	font-size: clamp(23px, 5.4vw, 40px);
	line-height: 1.2;
	max-width: 22ch;
	margin-bottom: 12px;
}

.quote-band cite {
	font-style: normal;
	font-size: 12px;
	color: rgba(255, 255, 255, .72);
}

/* ------------------------------------------------------------------
   Closing
------------------------------------------------------------------ */

.closing { padding: 52px 0 44px; }

.closing-title {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(30px, 7vw, 52px);
	line-height: 1.08;
	max-width: 18ch;
	margin-bottom: 26px;
}

.closing-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.closing-actions .btn { width: 100%; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */

.site-foot {
	padding: 30px 0 40px;
	border-top: 1px solid var(--line);
}

.wordmark--foot {
	font-family: var(--display);
	font-size: 22px;
	margin-bottom: 10px;
}

.foot-lines {
	font-size: 13px;
	color: var(--soft);
	line-height: 1.8;
}

.foot-lines a { text-decoration: none; }
.foot-lines a:hover { color: var(--white); }

/* ------------------------------------------------------------------
   Inner pages
------------------------------------------------------------------ */

.page-head { padding: 40px 0 10px; }

.page-title {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(32px, 7vw, 54px);
	line-height: 1.06;
	max-width: 20ch;
}

.page-meta { font-size: 13px; color: var(--soft); margin-top: 8px; }

.prose {
	padding-bottom: 56px;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .85);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2,
.prose h3 {
	font-family: var(--display);
	font-weight: 400;
	line-height: 1.2;
	margin-top: 1.6em;
}

.prose h2 { font-size: 30px; }
.prose h3 { font-size: 23px; }

.prose a { color: var(--white); text-underline-offset: 3px; }

.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }

/* The client portal brings its own layout; give it the full width. */
.page--portal { padding-bottom: 40px; }

.post-list { display: grid; gap: 30px; }
.post-item h2 { font-family: var(--display); font-weight: 400; font-size: 26px; }
.post-item a { text-decoration: none; }
.post-meta { font-size: 12px; color: var(--dim); margin: 4px 0 8px; }

/* ------------------------------------------------------------------
   Larger screens
------------------------------------------------------------------ */

@media (min-width: 720px) {
	:root { --gutter: 32px; }

	.nav-list { display: flex; }

	.hero { padding: 140px 0 64px; }
	.hero-sub { font-size: 17px; margin-bottom: 32px; }

	.hero-actions,
	.closing-actions {
		flex-direction: row;
	}

	.hero-actions .btn,
	.closing-actions .btn { width: auto; }

	.service { gap: 24px; padding: 30px 0; }
	.service-num { padding-top: 16px; }

	.services { padding: 88px 0 64px; }
	.evidence { padding: 32px 0 72px; }
	.evidence-grid { gap: 14px; }
	.evidence-item figcaption { font-size: 12px; }
	.closing { padding: 88px 0 72px; }

	.quote-band { min-height: 460px; padding: 120px 0 56px; }
}

@media (min-width: 1040px) {
	.service {
		align-items: center;
		gap: 40px;
	}

	.service-body {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 40px;
		align-items: baseline;
		width: 100%;
	}

	.service-title { margin-bottom: 0; }
	.service-num { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
