/*
Theme Name: Grow Wise
Template: Impreza
Version: 2.0.0
Author: Grow Wise
Theme URI: https://grow-wise.be/
Author URI: https://grow-wise.be/
Description: Grow Wise brand guide child theme for Impreza. Provides the layout, shortcodes and ACF-driven controls used to publish interactive brand books for clients at brandguide.grow-wise.be.
*/

/* Replace with your brand fonts when ready (Adobe Fonts / @font-face / Google Fonts). */
/* GLOBAL STYLES */
* {
    -webkit-font-smoothing: antialiased;
}
body {
	font-family: "area-normal", sans-serif;
}

.w-hwrapper.wrap {
	gap: var(--hwrapper-gap);
}

.w-tabs-list-bar {
	background: black !important;
}

.w-tabs.style_default>.w-tabs-list .w-tabs-item.active {
	border-color: black !important;
	color: black !important;
}

.w-tabs.style_trendy>.w-tabs-list .w-tabs-item.active {
	color: black !important;
}

a {
	text-decoration: underline;
	text-underline-offset: 5px;
}

.w-btn.us-btn-style_1
.w-btn.us-btn-style_2,
.w-btn.us-btn-style_3,
.section-navigation a,
.l-footer a {
	text-decoration: none;
}


/* TYPOGRAPHY */

b,
strong {
	font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "area-normal", sans-serif;
}

h1 small {
	font-size: .5em;
	font-weight: 200;
	text-transform: none;
}

ol,
ul {
    margin-left: 1rem;
}

ol li,
ul li {
    padding-left: .5rem;
}

/* ELEMENTS */
.w-btn {
	white-space: nowrap;
}

.w-btn.btn-download span::before {
	content: '';
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background-color: currentcolor;
    -webkit-mask-image: url(img/icon-download-white.svg);
    mask-image: url(img/icon-download-white.svg);
	mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: contain;
    margin-right: .7em;
}

.w-btn.btn-signature span::before {
	content: '';
    display: inline-block;
    width: 1.2em;
    height: 0.9em;
    background-color: currentcolor;
    -webkit-mask-image: url(img/icon-signature-white.svg);
    mask-image: url(img/icon-signature-white.svg);
	mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: contain;
    margin-right: .7em;
}

#page-content .wpb_text_column .wpb_wrapper {
	max-width: 980px;
}

.w-iconbox a,
.l-section.height_auto a {
	display: inline-block;
	border-bottom: 1px solid currentColor;
}

.color_hex_overwrite {
	text-transform: uppercase;
}

/* HEADER */
/* Sticky */
#page-header.sticky .l-subheader.at_middle {
	background: var(--color-alt-content-bg);
	box-shadow: 0px 8px 10px -22px rgba(16, 24, 40, 0.10), 0px 20px 25px -5px rgba(16, 24, 40, 0.10);
}
#page-header.sticky .ush_menu_1 .w-nav-item.level_1.current-menu-item>a:not(.w-btn),
#page-header.sticky .ush_menu_1 .w-nav-item.level_1.current-menu-ancestor>a:not(.w-btn),
#page-header.sticky .ush_menu_1 .w-nav-item.level_1.current-page-ancestor>a:not(.w-btn),
#page-header.sticky .ush_menu_1 .w-nav-item.level_1>a:not(.w-btn):focus,
#page-header.sticky .ush_menu_1 .w-nav-item.level_1.opened>a:not(.w-btn),
#page-header.sticky .ush_menu_1 .w-nav-item.level_1:hover>a:not(.w-btn){
    color: var(--color-header-top-bg);
}

/* Nav */
.section-navigation {
	display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-navigation li {
	list-style: none;
	padding: 0;
}

.section-navigation li a {
	color: inherit;
	text-transform: capitalize;
}

.section-navigation li a::before {
	content: '';
    display: inline-block;
    width: 1.2em;
    height: 0.9em;
    background-color: currentcolor;
	mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: contain;
    margin-right: .7em;
}

.section-navigation li.nav-intro,
.section-navigation li.nav-about,
.section-navigation li.nav-corner-radius {
	display: none;
}

.section-navigation li.nav-logo a::before {
	-webkit-mask-image: url(img/icon-logo.svg);
    mask-image: url(img/icon-logo.svg);
}

.section-navigation li.nav-colors a::before {
	-webkit-mask-image: url(img/icon-colors.svg);
    mask-image: url(img/icon-colors.svg);
}

.section-navigation li.nav-typography a::before {
	-webkit-mask-image: url(img/icon-typography.svg);
    mask-image: url(img/icon-typography.svg);
}

.section-navigation li.nav-photography a::before {
	-webkit-mask-image: url(img/icon-photography.svg);
    mask-image: url(img/icon-photography.svg);
}
.section-navigation li.nav-tone-of-voice a::before,
.section-navigation li.nav-ai-prompt a::before {
	-webkit-mask-image: url(img/icon-tone-of-voice.svg);
    mask-image: url(img/icon-tone-of-voice.svg);
}

.section-navigation li.nav-moodboard a::before {
	-webkit-mask-image: url(img/icon-moodboard.svg);
    mask-image: url(img/icon-moodboard.svg);
}

.section-navigation li.nav-assets a::before {
	-webkit-mask-image: url(img/icon-assets.svg);
    mask-image: url(img/icon-assets.svg);
}

.section-navigation li.nav-documents a::before {
	-webkit-mask-image: url(img/icon-documents.svg);
    mask-image: url(img/icon-documents.svg);
}
.section-navigation li.nav-signature a::before {
	-webkit-mask-image: url(img/icon-signature-white.svg);
    mask-image: url(img/icon-signature-white.svg);
}
.section-navigation li.nav-downloads a::before {
	-webkit-mask-image: url(img/icon-download.svg);
    mask-image: url(img/icon-download.svg);
}

.header_hor .w-nav.type_mobile.m_layout_dropdown .w-nav-list.level_1 {
    width: 20rem;
    left: initial;
}
.ush_menu_2 .w-nav-icon>div {
    border-width: 0 !important;
    background: url(img/mobile-menu.svg) no-repeat center center transparent;
    width: 25px;
    height: 25px;
    background-size: contain;
}

.w-nav-control.active .w-nav-icon>div {
    transform: translateY(-50%);
	transition: all .1s;
    transition-delay: 0;
	background: url(img/mobile-menu-close.svg) no-repeat center center transparent;
}

.w-nav-close {
    top: 2rem;
    right: 2rem;
    opacity: 1;
}

.w-nav-close:before {
    content: '';
    display: block;
	width: 25px;
    height: 25px;
	background: url(img/mobile-menu-close.svg) no-repeat center center transparent;
}

/* FOOTER */
#page-footer a {
	color: inherit;
}

#page-footer .wpb_text_column a {
	border-bottom: 1px solid currentcolor;
	display: inline-block;
    padding-bottom: 0.3em;
}

/* SECTIONS */
#page-content section.height_medium:not(#intro):not(#about):not(#404-content) .l-section-h {
	border-top: 1px solid var(--color-chrome-toolbar);
	padding-top: 2rem;
}


/* =====================================================================
   GROW WISE — SELF-CONTAINED BRAND-GUIDE BLOCKS
   Polished, dependency-free styling for [get_colors], [brand_fonts] and
   [brand_downloads]. --gw-radius is set per-page server-side (inc/theming.php)
   and falls back to 12px, so blocks inherit the client's chosen corner radius.
   ===================================================================== */

:root {
	--gw-border: rgba(16, 24, 40, .1);
	--gw-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px -12px rgba(16, 24, 40, .25);
	--gw-shadow-hover: 0 10px 30px -12px rgba(16, 24, 40, .35);
}

/* ---- Colour swatch grid: [get_colors] ---- */
.gw-color-grid {
	display: grid;
	grid-template-columns: repeat(var(--gw-color-cols, 4), minmax(0, 1fr));
	gap: 1.25rem;
	margin: 0;
}
@media (max-width: 900px) { .gw-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gw-color-grid { grid-template-columns: 1fr; } }

.gw-swatch {
	margin: 0;
	border-radius: var(--gw-radius, 12px);
	overflow: hidden;
	background: var(--color-alt-content-bg, #fff);
	border: 1px solid var(--gw-border);
	box-shadow: var(--gw-shadow);
	transition: box-shadow .2s ease, transform .2s ease;
}
.gw-swatch:hover { box-shadow: var(--gw-shadow-hover); transform: translateY(-2px); }
.gw-swatch__chip {
	position: relative;
	aspect-ratio: 5 / 4;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 1rem 1.1rem;
}
.gw-swatch__group {
	position: absolute;
	top: .85rem;
	left: 1.1rem;
	font-size: .65rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: .2rem .5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .22);
	backdrop-filter: blur(4px);
}
.gw-swatch--light .gw-swatch__name, .gw-swatch--light .gw-swatch__group { color: #0F172A; }
.gw-swatch--dark  .gw-swatch__name, .gw-swatch--dark  .gw-swatch__group { color: #FFFFFF; }
.gw-swatch--light .gw-swatch__group { background: rgba(15, 23, 42, .08); }
.gw-swatch__name { font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.gw-swatch__meta { display: flex; flex-direction: column; }
.gw-swatch__row {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: .6rem 1.1rem;
	border: 0;
	border-top: 1px solid var(--gw-border);
	background: transparent;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color .15s ease;
}
.gw-swatch__meta .gw-swatch__row:first-child { border-top: 0; }
.gw-swatch__row:hover { background: rgba(16, 24, 40, .04); }
.gw-swatch__label { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
.gw-swatch__value { font-variant-numeric: tabular-nums; text-transform: uppercase; font-size: .9rem; }
.gw-swatch__row.is-copied .gw-swatch__value { visibility: hidden; }
.gw-swatch__row.is-copied::after {
	content: 'Copied ✓';
	position: absolute;
	right: 1.1rem;
	font-size: .8rem;
	font-weight: 600;
	color: #16A34A;
}

/* ---- Font cards: [brand_fonts] ---- */
.gw-font-list { display: flex; flex-direction: column; gap: 1.25rem; margin: 0; }
.gw-font-card {
	border: 1px solid var(--gw-border);
	border-radius: var(--gw-radius, 12px);
	padding: 1.75rem 2rem;
	background: var(--color-alt-content-bg, #fff);
	box-shadow: var(--gw-shadow);
}
.gw-font-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--gw-border);
}
.gw-font-card__name { margin: 0; font-size: 1.5rem; }
.gw-font-card__role { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.gw-font-card__sample {
	font-size: clamp(2rem, 6vw, 3.75rem);
	line-height: 1.05;
	margin: 0 0 1rem;
	word-break: break-word;
}
.gw-font-card__glyphs {
	font-size: 1.1rem;
	letter-spacing: .02em;
	margin: 0 0 1.5rem;
	word-break: break-word;
}
.gw-font-card__dl { display: flex; flex-wrap: wrap; gap: .6rem; }
.gw-dl-btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .55rem 1rem;
	border-radius: var(--gw-radius, 12px);
	border: 1px solid var(--gw-border);
	background: transparent;
	color: inherit;
	text-decoration: none;
	font-size: .85rem;
	font-weight: 600;
	transition: background-color .15s ease, border-color .15s ease;
}
.gw-dl-btn::before {
	content: '';
	width: .85em; height: .85em;
	background-color: currentcolor;
	-webkit-mask: url(img/icon-download.svg) no-repeat center / contain;
	mask: url(img/icon-download.svg) no-repeat center / contain;
}
.gw-dl-btn:hover { background: rgba(16, 24, 40, .05); border-color: rgba(16, 24, 40, .25); }

/* ---- Download list: [brand_downloads] ---- */
.gw-downloads {
	display: grid;
	grid-template-columns: repeat(var(--gw-dl-cols, 2), minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
}
@media (max-width: 600px) { .gw-downloads { grid-template-columns: 1fr; } }
.gw-download {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--gw-border);
	border-radius: var(--gw-radius, 12px);
	background: var(--color-alt-content-bg, #fff);
	text-decoration: none;
	color: inherit;
	box-shadow: var(--gw-shadow);
	transition: box-shadow .15s ease, transform .15s ease;
}
.gw-download:hover { box-shadow: var(--gw-shadow-hover); transform: translateY(-2px); }
.gw-download__icon {
	flex: 0 0 auto;
	width: 2.6em; height: 2.6em;
	display: grid;
	place-items: center;
	border-radius: calc(var(--gw-radius, 12px) * .7);
	background: rgba(16, 24, 40, .05);
}
.gw-download__icon::before {
	content: '';
	display: block;
	width: 1.2em; height: 1.2em;
	background-color: currentcolor;
	-webkit-mask: url(img/icon-download.svg) no-repeat center / contain;
	mask: url(img/icon-download.svg) no-repeat center / contain;
}
.gw-download__body { flex: 1; min-width: 0; }
.gw-download__title { font-weight: 600; display: block; }
.gw-download__meta {
	font-size: .76rem;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.gw-empty {
	font-style: italic;
	padding: 1.25rem;
	border: 1px dashed var(--gw-border);
	border-radius: var(--gw-radius, 12px);
}

/* =====================================================================
   GROW WISE — AUTO-BUILT GUIDE LAYOUT
   Styles the server-generated page (inc/render.php) when a page has
   "Build this page automatically" turned on. Pure layout; the colour /
   font / download blocks above are reused inside each section.
   ===================================================================== */
.gw-guide {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* ---- Hero ---- */
.gw-hero {
	text-align: center;
	padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
	border-bottom: 1px solid var(--gw-border);
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.gw-hero__logo {
	max-width: 220px;
	max-height: 140px;
	width: auto;
	height: auto;
	margin: 0 auto 1.75rem;
	display: block;
	object-fit: contain;
}
.gw-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.1;
	font-family: var(--gw-font-heading, inherit);
}
.gw-hero__title small {
	display: block;
	margin-top: .5rem;
	font-size: .32em;
	letter-spacing: .22em;
	text-transform: uppercase;
	font-weight: 600;
}
.gw-hero__intro {
	max-width: 640px;
	margin: 0 auto 1.75rem;
	font-size: 1.1rem;
	line-height: 1.6;
}
.gw-hero__pdf { margin-top: .5rem; }

/* ---- Sticky in-page nav ---- */
.gw-guide-nav {
	position: sticky;
	top: 1.5rem;
	z-index: 20;
	margin: 0 0 clamp(2rem, 4vw, 3.5rem);
	padding: .85rem 1rem;
	background: rgba(255, 255, 255, .85);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border: 1px solid var(--gw-border);
	border-radius: var(--gw-radius, 12px);
	box-shadow: var(--gw-shadow);
}
.gw-guide-nav .section-navigation {
	justify-content: center;
	gap: .35rem 1.25rem;
	margin: 0;
}
.gw-guide-nav .section-navigation li a {
	display: inline-flex;
	align-items: center;
	padding: .4rem .35rem;
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
}
.gw-guide-nav .section-navigation li a:hover { text-decoration: underline; }

/* Hamburger toggle — hidden on desktop, shown on mobile (see media query). */
.gw-nav-toggle { display: none; }
.gw-nav-burger { display: none; }

/* ---- Sections ---- */
.gw-section {
	padding: clamp(2rem, 4vw, 3.5rem) 0;
	border-top: 1px solid var(--gw-border);
	scroll-margin-top: 5rem;
}
.gw-section:first-of-type { border-top: 0; }
.gw-section h2 {
	margin: 0 0 1.5rem;
	font-size: clamp(1.6rem, 3.5vw, 2.25rem);
	font-family: var(--gw-font-heading, inherit);
}
/* When a lead paragraph follows the title, tighten the title→lead gap a touch. */
.gw-section h2 + .gw-section__lead { margin-top: -.75rem; }
.gw-section__lead {
	margin: 0 0 1.75rem;
	font-size: 1.05rem;
	max-width: 640px;
}

/* ---- About (Vision / Mission / Purpose) ---- */
.gw-about {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
}
.gw-about__col {
	padding: 1.75rem;
	border: 1px solid var(--gw-border);
	border-radius: var(--gw-radius, 12px);
	background: rgba(16, 24, 40, .02);
}
.gw-about__col h3 {
	margin: .35rem 0 1.5rem;
	font-size: 1.35rem;
	font-family: var(--gw-font-heading, inherit);
}
.gw-about__col p { margin: 0; line-height: 1.6; }
.gw-kicker {
	font-size: .7rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 700;
}

/* ---- Image galleries (logo lock-ups / photography) ---- */
.gw-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0 0;
}
.gw-gallery__item {
	display: block;
	border: 1px solid var(--gw-border);
	border-radius: var(--gw-radius, 12px);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--gw-shadow);
	transition: transform .15s ease, box-shadow .15s ease;
}
.gw-gallery__item:hover {
	transform: translateY(-2px);
	box-shadow: var(--gw-shadow-hover);
}
.gw-gallery__item img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: contain;
	padding: 1rem;
}

/* Photo galleries: edge-to-edge, no white frame, larger tiles. */
.gw-gallery--cover {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gw-gallery--cover .gw-gallery__item {
	background: transparent;
	border: 0;
}
.gw-gallery--cover .gw-gallery__item img {
	height: 260px;
	object-fit: cover;
	padding: 0;
}

/* Downloads should breathe when they follow images or text. */
.gw-gallery + .gw-downloads,
.gw-rte + .gw-downloads { margin-top: 1.5rem; }

/* ---- Rich-text blocks (intro / guidance / tone) ---- */
.gw-rte { line-height: 1.7; }
.gw-rte > :first-child { margin-top: 0; }
.gw-rte > :last-child { margin-bottom: 0; }
.gw-rte img { max-width: 100%; height: auto; border-radius: var(--gw-radius, 12px); }
.gw-rte ul, .gw-rte ol { padding-left: 1.25rem; }

/* Colour swatches: fewer columns as the screen narrows. */
@media (max-width: 720px) {
	.gw-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
	.gw-color-grid { grid-template-columns: 1fr; }
}

/* ---- Mobile: collapse the in-page nav into a hamburger menu ---- */
@media (max-width: 860px) {
	.gw-guide-nav {
		padding: .65rem .85rem;
		display: flex;
		flex-direction: column;
	}

	/* Burger button */
	.gw-nav-burger {
		display: inline-flex;
		align-items: center;
		gap: .65rem;
		cursor: pointer;
		font-weight: 600;
		font-size: .95rem;
		padding: .25rem;
		-webkit-user-select: none;
		user-select: none;
	}
	.gw-nav-burger__bars,
	.gw-nav-burger__bars::before,
	.gw-nav-burger__bars::after {
		content: '';
		display: block;
		width: 22px;
		height: 2px;
		background: currentColor;
		border-radius: 2px;
		transition: transform .2s ease, background .2s ease;
	}
	.gw-nav-burger__bars { position: relative; }
	.gw-nav-burger__bars::before { position: absolute; top: -7px; left: 0; }
	.gw-nav-burger__bars::after  { position: absolute; top: 7px;  left: 0; }

	/* The list: hidden until the burger is toggled, then a vertical menu */
	.gw-guide-nav .section-navigation {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin-top: .75rem;
	}
	.gw-nav-toggle:checked ~ .section-navigation { display: flex; }
	.gw-guide-nav .section-navigation li { width: 100%; }
	.gw-guide-nav .section-navigation li a {
		width: 100%;
		padding: .8rem .25rem;
		border-top: 1px solid var(--gw-border);
	}

	/* Burger animates into an X when open */
	.gw-nav-toggle:checked ~ .gw-nav-burger .gw-nav-burger__bars { background: transparent; }
	.gw-nav-toggle:checked ~ .gw-nav-burger .gw-nav-burger__bars::before { transform: translateY(7px) rotate(45deg); }
	.gw-nav-toggle:checked ~ .gw-nav-burger .gw-nav-burger__bars::after  { transform: translateY(-7px) rotate(-45deg); }
}
