/*
Theme Name:   GeneratePress Noble Fight
Theme URI:    https://www.noblefight.co.nz/
Description:  Child theme of GeneratePress for Noble Fight Systems, a Muay Thai and kickboxing gym in Hakaru.
Author:       ServiceGecko
Author URI:   https://servicegecko.com/
Template:     generatepress
Version:      1.1.1
Requires at least: 6.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  generatepress-noblefight
*/

/* Brand tokens. */
:root {
	--nf-black: #060709;
	--nf-surface: #101114;
	--nf-surface-2: #14161a;
	--nf-line: #24231f;
	--nf-line-strong: #3a3833;
	--nf-text: #efe8dc;
	--nf-text-soft: #d8d0c3;
	--nf-muted: #b9b0a2;
	--nf-gold: #f8c785;
	--nf-font-body: "Barlow", system-ui, sans-serif;
	--nf-font-display: "Barlow Condensed", Impact, sans-serif;
}

/*
 * GeneratePress Global Colors, remapped to the brand.
 * This stylesheet loads after GeneratePress's own CSS, so these win over the
 * Customizer's Global Colors. Change colours here, not in the Customizer.
 *   contrast = text, base = backgrounds and lines, accent = links.
 */
:root {
	--contrast: var(--nf-text);
	--contrast-2: var(--nf-muted);
	--contrast-3: var(--nf-line-strong);
	--base: var(--nf-line);
	--base-2: var(--nf-black);
	--base-3: var(--nf-surface);
	--accent: var(--nf-gold);
	--gp-search-modal-overlay-bg-color: rgba(6, 7, 9, 0.8);
}

body {
	background-color: var(--nf-black);
	color: var(--nf-text);
	font-family: var(--nf-font-body);
	font-size: 17px;
	line-height: 1.55;
}

a {
	color: var(--nf-text);
}

a:hover,
a:focus {
	color: var(--nf-gold);
}

h1,
h2,
h3 {
	font-family: var(--nf-font-display);
	font-style: italic;
	font-weight: 900;
	line-height: 0.9;
	text-transform: uppercase;
}

h4,
h5,
h6 {
	font-family: var(--nf-font-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Small uppercase label above headings. */
.nf-eyebrow {
	font-family: var(--nf-font-display);
	font-weight: 600;
	font-size: 18px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--nf-gold);
}

/* Slanted call-to-action button. Add the class to a link or button block. */
.nf-button,
.nf-button .wp-block-button__link {
	display: inline-block;
	background: var(--nf-gold);
	color: var(--nf-black);
	border: 0;
	border-radius: 0;
	padding: 18px 38px;
	clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
	font-family: var(--nf-font-display);
	font-style: italic;
	font-weight: 800;
	font-size: 22px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.nf-button:hover,
.nf-button:focus,
.nf-button .wp-block-button__link:hover,
.nf-button .wp-block-button__link:focus {
	background: var(--nf-text);
	color: var(--nf-black);
}

/* FAQ accordions built with the Details block. */
.wp-block-details {
	border-top: 1px solid var(--nf-line);
	padding: 22px 0;
}

.wp-block-details summary {
	cursor: pointer;
	font-family: var(--nf-font-display);
	font-style: italic;
	font-weight: 800;
	font-size: 28px;
	line-height: 1.1;
	text-transform: uppercase;
}

.wp-block-details p {
	color: var(--nf-muted);
	max-width: 680px;
}

/* GeneratePress layout: header, navigation, footer. */
.site-header,
.main-navigation {
	background-color: var(--nf-black);
}

.site-header {
	border-bottom: 1px solid var(--nf-line);
}

.main-navigation ul ul {
	background-color: var(--nf-surface-2);
}

.main-title {
	font-family: var(--nf-font-display);
	font-style: italic;
	font-weight: 900;
	text-transform: uppercase;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle {
	font-family: var(--nf-font-display);
	font-weight: 600;
	font-size: 18px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.site-info {
	background-color: var(--nf-black);
	border-top: 1px solid var(--nf-line);
	color: var(--nf-muted);
}

.site-info a {
	color: var(--nf-muted);
}

.top-bar {
	background-color: var(--nf-surface);
	color: var(--nf-text);
}

.top-bar a {
	color: var(--nf-text);
}

.top-bar a:hover,
.top-bar a:focus {
	color: var(--nf-gold);
}

/* GeneratePress and block styles hard-code grey buttons; make them gold. */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background),
.wp-element-button:not(.has-background) {
	background-color: var(--nf-gold);
	color: var(--nf-black);
	font-family: var(--nf-font-display);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
button:focus,
html input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
a.button:focus,
a.wp-block-button__link:not(.has-background):active,
a.wp-block-button__link:not(.has-background):focus,
a.wp-block-button__link:not(.has-background):hover,
.wp-element-button:not(.has-background):hover,
.wp-element-button:not(.has-background):focus {
	background-color: var(--nf-text);
	color: var(--nf-black);
}

::placeholder {
	color: var(--nf-muted);
	opacity: 1;
}

:focus-visible {
	outline: 2px solid var(--nf-gold);
	outline-offset: 2px;
}

/* ==========================================================================
   Header: logo and the "Book a class" menu button
   ========================================================================== */

.site-logo img,
.site-logo .header-image {
	width: auto;
	height: 64px;
}

/* The logo carries the name; keep the text title for screen readers only. */
.nf-has-logo .site-logo ~ .site-branding {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.main-navigation .main-nav > ul > li:last-child > a,
.main-navigation .main-nav > ul > li:last-child:hover > a,
.main-navigation .main-nav > ul > li:last-child[class*="current-menu-"] > a {
	background-color: var(--nf-gold) !important;
	color: var(--nf-black) !important;
	padding-left: 24px;
	padding-right: 24px;
	margin-left: 10px;
	clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
	font-style: italic;
	font-weight: 800;
}

/* ==========================================================================
   Site footer (added in functions.php)
   ========================================================================== */

.nf-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 56px;
	padding: 56px max(24px, calc((100% - 1272px) / 2)) 32px;
	border-top: 1px solid var(--nf-line);
	background: var(--nf-black);
	font-size: 16px;
}

.nf-footer p {
	margin: 0;
}

.nf-footer__brand {
	flex: 2 1 300px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: var(--nf-muted);
}

.nf-footer__brand img {
	width: auto;
	height: 64px;
	align-self: flex-start;
}

.nf-footer__values {
	font-family: var(--nf-font-display);
	font-style: italic;
	font-weight: 800;
	font-size: 20px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nf-text);
}

.nf-footer__col {
	flex: 1 1 180px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nf-footer__col a {
	text-decoration: none;
}

.nf-footer__label {
	font-family: var(--nf-font-display);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nf-muted);
}

.nf-footer .nf-footer__phone {
	color: var(--nf-gold);
}

/* ==========================================================================
   Pages: edge-to-edge layout (body.nf-page is set in functions.php)
   ========================================================================== */

.nf-page .site.grid-container,
.nf-page .site-content .content-area {
	max-width: none;
	width: 100%;
}

.nf-page .site-content {
	display: block;
	padding: 0;
}

.nf-page.separate-containers .site-main {
	margin: 0;
}

.nf-page.separate-containers .inside-article {
	padding: 0;
	background: transparent;
}

.nf-page .entry-content {
	margin: 0;
}

.nf-page .entry-content > * {
	margin-top: 0;
	margin-bottom: 0;
}

.nf-page h1 {
	font-size: clamp(56px, 8vw, 124px);
	line-height: 0.86;
	margin: 0;
}

.nf-page h2 {
	font-size: clamp(48px, 6.5vw, 100px);
	line-height: 0.88;
	margin: 0 0 28px;
}

.nf-page h3 {
	font-size: clamp(28px, 3vw, 40px);
	line-height: 0.95;
	margin: 0;
}

/* Bold words in big headings turn gold. */
.nf-page h1 strong,
.nf-page h2 strong,
.nf-slogan strong {
	color: var(--nf-gold);
	font-weight: inherit;
}

.nf-page .wp-block-list {
	margin: 16px 0 0 20px;
	color: var(--nf-muted);
}

.nf-page .wp-block-list li + li {
	margin-top: 6px;
}

/* Text helpers */
.nf-lead {
	max-width: 580px;
	font-size: 20px;
	color: var(--nf-text-soft);
}

.nf-intro {
	max-width: 520px;
	color: var(--nf-muted);
}

.nf-crumbs,
.nf-note,
.nf-proof {
	font-size: 15px;
	color: var(--nf-muted);
}

.nf-crumbs a,
.nf-note a {
	color: var(--nf-muted);
}

.nf-label {
	margin: 0;
	font-family: var(--nf-font-display);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nf-muted);
}

.nf-page h1.nf-eyebrow {
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.3;
}

.nf-slogan {
	font-family: var(--nf-font-display);
	font-style: italic;
	font-weight: 900;
	font-size: clamp(72px, 11vw, 168px);
	line-height: 0.84;
	text-transform: uppercase;
}

.nf-slogan.nf-phone {
	font-size: clamp(40px, 5vw, 56px);
}

.nf-slogan.nf-phone a {
	color: var(--nf-gold);
	text-decoration: none;
}

.nf-page .wp-block-group > :last-child {
	margin-bottom: 0;
}

.nf-num {
	margin: 0;
	font-family: var(--nf-font-display);
	font-style: italic;
	font-weight: 900;
	font-size: 64px;
	line-height: 0.8;
	color: transparent;
	-webkit-text-stroke: 2px var(--nf-gold);
}

.nf-tag {
	width: fit-content;
	background: var(--nf-text);
	color: var(--nf-black);
	padding: 6px 20px;
	clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
	font-family: var(--nf-font-display);
	font-style: italic;
	font-weight: 800;
	font-size: 22px;
	text-transform: uppercase;
}

.nf-band {
	overflow: hidden;
	white-space: nowrap;
	margin: 10px -40px 0 !important;
	padding: 16px 0;
	transform: rotate(-2deg);
	background: var(--nf-gold);
	color: var(--nf-black);
	font-family: var(--nf-font-display);
	font-style: italic;
	font-weight: 900;
	font-size: 34px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Text link styled button ("See the classes"). */
.wp-block-button.nf-link .wp-block-button__link {
	background: none;
	color: var(--nf-text);
	padding: 0;
	clip-path: none;
	font-weight: 600;
	font-size: 19px;
	letter-spacing: 0.06em;
	text-decoration: underline;
	text-underline-offset: 6px;
}

.wp-block-button.nf-link .wp-block-button__link:hover,
.wp-block-button.nf-link .wp-block-button__link:focus {
	background: none;
	color: var(--nf-gold);
}

.nf-actions {
	gap: 20px 30px;
	align-items: center;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.nf-section {
	padding: 100px max(24px, calc((100% - 1272px) / 2));
}

.nf-section--tight {
	padding-top: 40px;
	padding-bottom: 40px;
}

.nf-section--dark {
	background: var(--nf-surface);
}

.nf-section--gold {
	background: var(--nf-gold);
	color: var(--nf-black);
	padding-top: 140px;
	clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
}

.nf-section--gold h2,
.nf-section--gold p,
.nf-section--gold a,
.nf-section--gold cite {
	color: var(--nf-black);
}

.nf-section--gold .wp-block-button.nf-button .wp-block-button__link {
	background: var(--nf-black);
	color: var(--nf-text);
}

.nf-section--gold .wp-block-button.nf-link .wp-block-button__link {
	color: var(--nf-black);
	font-style: italic;
	font-weight: 800;
	font-size: 30px;
}

.nf-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 24px;
	margin-bottom: 40px;
}

.nf-head > * {
	margin: 0 !important;
}

/* Page hero: photo on the right, copy on the left. */
.nf-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 600px;
	padding: 72px max(24px, calc((100% - 1272px) / 2)) 140px;
}

.nf-hero--home {
	min-height: 780px;
}

.nf-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, var(--nf-black) 40%, rgba(6, 7, 9, 0.6) 66%, rgba(6, 7, 9, 0.12) 100%);
}

.nf-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	z-index: 1;
	height: 70px;
	background: var(--nf-black);
	clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.nf-hero > .nf-hero__img {
	position: absolute;
	top: 0;
	right: 0;
	width: 58%;
	height: 100%;
	margin: 0 !important;
}

.nf-hero__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
}

.nf-hero > *:not(.nf-hero__img) {
	position: relative;
	z-index: 2;
	max-width: 780px;
}

.nf-hero > * + * {
	margin-top: 22px;
}

/* Page heading without a photo. */
.nf-pagehead {
	padding: 72px max(24px, calc((100% - 1272px) / 2)) 40px;
}

.nf-pagehead > * + * {
	margin-top: 22px;
}

/* Quick facts strip. */
.nf-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin: 0 max(24px, calc((100% - 1272px) / 2)) !important;
	background: var(--nf-surface);
	border-top: 4px solid var(--nf-gold);
}

.nf-facts > * {
	margin: 0 !important;
	padding: 24px 26px;
	border-right: 1px solid var(--nf-line);
}

.nf-facts > *:last-child {
	border-right: 0;
}

.nf-facts p {
	margin: 0;
}

.nf-facts .nf-label + p {
	margin-top: 6px;
	font-size: 19px;
	font-weight: 600;
}

/* Image + text, side by side. */
.nf-split {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px 56px;
}

.nf-split > * {
	flex: 999 1 460px;
	min-width: 0;
	margin: 0 !important;
}

.nf-split > .wp-block-image {
	flex: 1 1 380px;
}

.nf-split > .wp-block-image img {
	width: 100%;
	height: 440px;
	object-fit: cover;
	object-position: center 25%;
	clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

.nf-split + .nf-split {
	margin-top: 56px !important;
	padding-top: 56px;
	border-top: 1px solid var(--nf-line);
}

/* Grids and cards. */
.nf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 22px;
}

.nf-grid--wide {
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.nf-grid > * {
	margin: 0 !important;
}

.nf-card {
	background: var(--nf-surface);
	padding: 32px 28px 36px;
	clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.nf-section--dark .nf-card {
	background: var(--nf-surface-2);
}

.nf-card--gold,
.nf-section--dark .nf-card--gold {
	background: var(--nf-gold);
	color: var(--nf-black);
}

.nf-card--gold h3,
.nf-card--gold p,
.nf-card--gold li,
.nf-card--gold .wp-block-list {
	color: var(--nf-black);
}

.nf-card > * + *,
.nf-step > * + *,
.nf-person > * + * {
	margin-top: 12px;
}

.nf-card p,
.nf-step p,
.nf-person p {
	color: var(--nf-muted);
}

.nf-card .nf-tag {
	margin-top: 18px;
}

.nf-step {
	border-top: 2px solid var(--nf-gold);
	padding-top: 22px;
}

.nf-person {
	border-top: 1px solid var(--nf-line);
	padding-top: 24px;
}

.nf-card img {
	width: 100%;
	height: 340px;
	object-fit: cover;
}

/* Two-column FAQ. */
.nf-faq {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 56px;
}

.nf-faq > * {
	margin: 0 !important;
}

.nf-faq > *:first-child {
	flex: 1 1 320px;
}

.nf-faq > *:last-child {
	flex: 999 1 560px;
	min-width: 0;
	border-bottom: 1px solid var(--nf-line);
}

.nf-faq .wp-block-details {
	margin: 0;
}

.nf-faq .wp-block-details p {
	margin: 14px 0 0;
}

/* Quotes and reviews. */
.nf-page blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
	font-size: inherit;
}

.nf-quote p {
	font-family: var(--nf-font-display);
	font-style: italic;
	font-weight: 900;
	font-size: clamp(32px, 4.2vw, 58px);
	line-height: 1;
	text-transform: uppercase;
}

.nf-quote cite,
.nf-review cite {
	display: block;
	margin-top: 20px;
	font-family: var(--nf-font-display);
	font-style: normal;
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nf-review {
	background: var(--nf-surface);
	border-top: 3px solid var(--nf-gold) !important;
	padding: 28px !important;
}

.nf-section--dark .nf-review {
	background: var(--nf-surface-2);
}

.nf-review p {
	color: var(--nf-text-soft);
}

.nf-review cite {
	color: var(--nf-muted);
}

.nf-stars {
	color: var(--nf-gold);
	font-family: var(--nf-font-display);
	font-weight: 800;
	font-size: 20px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Tables (timetable, prices). */
.nf-table {
	overflow-x: auto;
	margin: 0;
}

.nf-table table {
	width: 100%;
	min-width: 620px;
	border: 0;
	border-collapse: collapse;
	font-size: 17px;
}

.nf-table th,
.nf-table td {
	border: 0;
	text-align: left;
}

.nf-table th {
	padding: 12px 16px 12px 0;
	border-bottom: 2px solid var(--nf-gold);
	font-family: var(--nf-font-display);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nf-muted);
}

.nf-table td {
	padding: 16px 16px 16px 0;
	border-bottom: 1px solid var(--nf-line);
}

.nf-table td strong {
	font-family: var(--nf-font-display);
	font-style: italic;
	font-weight: 800;
	font-size: 26px;
}

/* Town chips. */
.nf-page .nf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nf-page .nf-chips li {
	margin: 0;
	padding: 10px 20px;
	border: 1px solid var(--nf-line-strong);
	color: var(--nf-text);
	font-family: var(--nf-font-display);
	font-weight: 600;
	font-size: 20px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Spots waiting on the client: video, logos, form. */
.nf-placeholder {
	padding: 40px 28px;
	border: 2px dashed var(--nf-line-strong);
	color: var(--nf-muted);
	text-align: center;
	font-family: var(--nf-font-display);
	font-weight: 600;
	font-size: 20px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (max-width: 768px) {
	.nf-section {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.nf-hero {
		min-height: 560px;
		padding-top: 48px;
	}

	.nf-hero > .nf-hero__img {
		width: 100%;
		opacity: 0.35;
	}

	.nf-hero::before {
		background: linear-gradient(0deg, var(--nf-black) 25%, rgba(6, 7, 9, 0.55));
	}

	.nf-split > .wp-block-image img {
		height: 320px;
	}

	.nf-facts > * {
		border-right: 0;
		border-bottom: 1px solid var(--nf-line);
	}
}
