/*
Theme Name: 90stype
Author: Mujeeb Nawaz
Description: A minimal theme with custom blocks.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: 90stype
*/

:root {
	--nt-surface: #ffffff;
	--nt-on-surface: #1a1c1b;
	--nt-on-surface-variant: #4a4a47;
	--nt-primary: #1a1c1b;
	--nt-secondary: #5f5e5e;
	--nt-outline-variant: #d8d3ca;
	--nt-gradient: linear-gradient(135deg, #4dc98b 0%, #4a9d9c 50%, #5878ac 100%);
	--nt-max-width: 1280px;
	--nt-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--nt-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--nt-surface);
	color: var(--nt-on-surface);
	font-family: var(--nt-body);
	font-size: 15.5px;
	font-weight: 400;
	line-height: 1.75;
	letter-spacing: 0;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--nt-primary);
}

/* ---- Type: Montserrat throughout, headings tightened for presence ---- */
h1, h2, h3, h4, h5, h6,
.hero-title, .hero-quote,
.service-title,
.tb-title,
.step-title,
.overwhelm-punch__heading, .ov-word,
.wp-block-ninetystype-mission-quote blockquote,
.wp-block-quote.nt-testimonial p,
.cb-line1, .cb-line2,
.site-header__brand, .site-overlay__logo, .site-overlay__nav a {
	font-family: var(--nt-display);
}

/* large display headings: heavier and tightly tracked so the sans has weight */
.hero-title,
.overwhelm-punch__heading, .ov-word,
.wp-block-ninetystype-mission-quote blockquote {
	font-weight: 700;
	letter-spacing: -0.025em;
}

.service-title,
.tb-title,
.step-title,
.site-main h2,
.site-main h3.wp-block-heading {
	font-weight: 600;
	letter-spacing: -0.02em;
}

.wp-block-quote.nt-testimonial p {
	font-weight: 500;
	letter-spacing: -0.02em;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--nt-gradient);
	background-attachment: fixed;
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 80px;
	max-width: var(--nt-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.site-header__brand {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	color: #ffffff;
	font-size: 24px;
	font-weight: 300;
	letter-spacing: -0.01em;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

/* hide the header brand while the overlay menu is open */
body.nav-open .site-header__brand {
	opacity: 0;
	pointer-events: none;
}

/* Burger toggle */
.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 40px;
	height: 40px;
	padding: 6px;
	border: none;
	background: transparent;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 1px;
	background: #ffffff;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle:hover span:nth-child(1) { transform: translateY(-1px); }
.nav-toggle:hover span:nth-child(3) { transform: translateY(1px); }

/* burger morphs into a cross while the menu is open */
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Full-page overlay menu — sits below the sticky header so the burger
   stays on top and morphs in place; both share the gradient. */
.site-overlay {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: var(--nt-gradient);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

body.nav-open {
	overflow: hidden;
}

.site-overlay__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-width: var(--nt-max-width);
	margin: 0 auto;
	padding: 80px 24px 0; /* clear the sticky header */
}

.site-overlay__nav {
	display: flex;
	align-items: center;
	flex: 1;
	min-height: 0;
}

.site-overlay__nav ul {
	counter-reset: nt-nav;
	display: flex;
	flex-direction: column;
	gap: clamp(0.75rem, 2.5vh, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-overlay__nav li {
	counter-increment: nt-nav;
	opacity: 0;
	transform: translateY(14px);
}

.site-overlay.is-open .site-overlay__nav li {
	animation: nt-nav-in 0.45s ease both;
}

.site-overlay.is-open .site-overlay__nav li:nth-child(1) { animation-delay: 0.1s; }
.site-overlay.is-open .site-overlay__nav li:nth-child(2) { animation-delay: 0.18s; }
.site-overlay.is-open .site-overlay__nav li:nth-child(3) { animation-delay: 0.26s; }
.site-overlay.is-open .site-overlay__nav li:nth-child(4) { animation-delay: 0.34s; }
.site-overlay.is-open .site-overlay__nav li:nth-child(5) { animation-delay: 0.42s; }
.site-overlay.is-open .site-overlay__nav li:nth-child(6) { animation-delay: 0.5s; }

@keyframes nt-nav-in {
	0% { opacity: 0; transform: translateY(14px); }
	100% { opacity: 1; transform: none; }
}

.site-overlay__nav a {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: 1.25rem;
	color: #ffffff;
	font-size: clamp(26px, 4.5vh, 42px);
	font-weight: 300;
	letter-spacing: -0.01em;
	line-height: 1.15;
	text-decoration: none;
}

.site-overlay__nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 100%;
	height: 2px;
	background: #ffffff;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.site-overlay__nav a:hover::after {
	transform: scaleX(1);
}

.site-overlay__nav a::before {
	content: counter(nt-nav, decimal-leading-zero);
	color: rgba(255, 255, 255, 0.65);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.12em;
}


.site-overlay__footer {
	display: flex;
	justify-content: center;
	flex: none;
	padding: 32px 0;
}

.site-overlay__logo {
	color: #ffffff;
	font-size: 26px;
	font-weight: 300;
	letter-spacing: -0.01em;
}

/* Main */
.site-main {
	max-width: var(--nt-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* Buttons */
.wp-block-button__link,
.wp-element-button {
	background: var(--nt-gradient);
	color: #ffffff;
	border: none;
	border-radius: 0.25rem;
	padding: 0.85rem 1.9rem;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	color: #ffffff;
	opacity: 0.88;
}

/* Section headings & intros */
.site-main h3.wp-block-heading {
	margin: 3rem 0 0.75rem;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* plain reading pages */
.nt-prose {
	max-width: 42rem;
	margin: 0 auto 1.5rem;
	font-size: 18px;
	line-height: 1.7;
}

.site-main h3.wp-block-heading.nt-prose {
	max-width: 42rem;
	margin: 2.5rem auto 0.75rem;
}

.nt-section-intro {
	max-width: 44rem;
	margin: 0 auto 1rem;
	color: var(--nt-secondary);
	font-size: 18px;
	line-height: 1.6;
}

/* Testimonial quote */
.wp-block-quote.nt-testimonial {
	max-width: 46rem;
	margin: 4.5rem auto;
	padding: 0;
	border: none;
	text-align: center;
}

.wp-block-quote.nt-testimonial::before {
	content: "\201C";
	display: block;
	margin-bottom: 1.5rem;
	color: var(--nt-primary);
	font-size: 100px;
	font-weight: 600;
	line-height: 0.55;
}

.wp-block-quote.nt-testimonial p {
	margin: 0;
	font-size: clamp(24px, 3.5vw, 38px);
	font-style: italic;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.wp-block-quote.nt-testimonial cite {
	display: block;
	margin-top: 1.5rem;
	color: var(--nt-secondary);
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Cookie banner */
.cookie-banner {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 60;
	width: min(680px, calc(100vw - 32px));
	transform: translate(-50%, 20px);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-visible {
	transform: translate(-50%, 0);
	opacity: 1;
}

.cookie-banner__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1.25rem 1.5rem;
	border: 1.5px solid transparent;
	border-radius: 0.5rem;
	background:
		linear-gradient(#ffffff, #ffffff) padding-box,
		var(--nt-gradient) border-box;
	box-shadow: 0 12px 32px rgba(26, 28, 27, 0.12);
}

.cookie-banner__text strong {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.cookie-banner__text p {
	margin: 0;
	color: var(--nt-secondary);
	font-size: 13.5px;
	line-height: 1.55;
}

.cookie-banner__text a {
	color: var(--nt-on-surface);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cookie-banner__btn {
	flex: none;
	align-self: center;
	padding: 0.65rem 1.5rem;
	border: none;
	border-radius: 0.25rem;
	background: var(--nt-gradient);
	color: #ffffff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.cookie-banner__btn:hover {
	opacity: 0.88;
}

@media (max-width: 560px) {
	.cookie-banner__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
}

/* Footer */
.site-footer {
	margin-top: 64px;
	border-top: 1px solid transparent;
	border-image: var(--nt-gradient) 1;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: var(--nt-max-width);
	margin: 0 auto;
	padding: 48px 24px;
}

.site-footer__brand {
	font-family: var(--nt-display);
	font-size: 22px;
	font-weight: 600;
}

.site-footer__copyright {
	margin: 0.5rem 0 0;
	color: var(--nt-secondary);
	font-size: 12px;
	font-weight: 500;
}

.site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.site-footer__nav a {
	color: var(--nt-secondary);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.site-footer__nav a:hover {
	color: var(--nt-primary);
}

@media (min-width: 768px) {
	.site-header__inner,
	.site-main {
		padding-left: 64px;
		padding-right: 64px;
	}

	.site-footer__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding-left: 64px;
		padding-right: 64px;
	}
}
