/* NailKnowledge Custom Styles
 * Use this file to override styles from style.css
 * This file loads after the main stylesheet.
 */

/* =================================================================
   Self-hosted DM Sans (variable weight, latin)
   ================================================================= */

@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
	font-family: "DM Sans";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/dm-sans-latin-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Playlist Script";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/playlist-script.woff2") format("woff2");
}

@media only screen and (max-width: 959px) {
	.desktop-only {
		display: none;
	}
}

@media only screen and (min-width: 960px) {
	.mobile-only {
		display: none;
	}
}

.has-playlist-script-font-family {
	font-family: "Playlist Script", cursive;
}

body {
	color: #3e3e3c;
	font-family: "DM Sans", sans-serif;
}

.site-header {
	border-bottom: 3px solid;
	border-image: linear-gradient(to right, #b7a5ec, #897d9e) 1;
}

a {
	color: #9fb7a1;
}

a:focus,
a:hover,
.genesis-nav-menu a:focus,
.genesis-nav-menu a:hover,
.genesis-nav-menu .current-menu-item > a,
.genesis-nav-menu .sub-menu .current-menu-item > a:focus,
.genesis-nav-menu .sub-menu .current-menu-item > a:hover {
	color: #9fb7a1;
}

.genesis-nav-menu .menu-item a {
	font-weight: 700;
	vertical-align: middle;
}

.menu-toggle:focus,
.menu-toggle:hover,
.sub-menu-toggle:focus,
.sub-menu-toggle:hover {
	color: #9fb7a1;
}

/* =================================================================
   Social Media Icons
   ================================================================= */

li.nk-social-icons {
	display: flex;
	align-items: center;
	gap: 12px;
	list-style: none;
}

li.nk-social-icons a {
	display: inline-flex;
	color: #3e3e3c;
	text-decoration: none;
	padding: 0 5px !important;
}

li.nk-social-icons a:hover,
li.nk-social-icons a:focus {
	color: #9fb7a1;
}

div.nk-social-icons {
	display: flex;
	align-items: center;
	gap: 12px;
}

div.nk-social-icons a {
	display: inline-flex;
	text-decoration: none;
	color: inherit;
}

div.nk-social-icons svg {
	width: 1em;
	height: 1em;
}

div.nk-social-icons a:hover,
div.nk-social-icons a:focus {
	color: #9fb7a1;
}

/* =================================================================
   Mobile Header Layout
   ================================================================= */

@media only screen and (max-width: 959px) {
	.site-header .wrap {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		flex-wrap: wrap;
		position: relative;
	}

	.site-header .nav-primary {
		flex-basis: 100%;
	}

	.site-header {
		padding: 0 15px;
	}

	.title-area {
		float: none;
		padding: 10px 0;
	}

	.wp-custom-logo .title-area {
		max-width: 250px;
		padding: 5px 0;
	}

	.menu-toggle {
		position: absolute;
		right: 0px;
		top: 5px;
		float: none;
		margin: 0;
		padding: 10px 0;
		font-size: 0;
		line-height: 0;
		order: 2;
	}

	.nk-social-icons {
		justify-content: center;
		padding: 10px 0;
	}

	.alignfull {
		padding-left: 20px;
		padding-right: 20px;
	}
}

.alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
	padding-left: 0;
	padding-right: 0;
}

@media only screen and (min-width: 960px) {
	li.nk-social-icons {
		margin-left: auto;
	}
}

/* =================================================================
   CSS Icon Replacements (eliminates dashicons font dependency)
   ================================================================= */

/* Hamburger menu icon — replaces dashicons-menu \f333 */
.menu-toggle.dashicons-before::before {
	content: "" !important;
	display: inline-block;
	width: 28px;
	height: 20px;
	background:
		linear-gradient(currentColor, currentColor) top center / 100% 3px no-repeat,
		linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat,
		linear-gradient(currentColor, currentColor) bottom center / 100% 3px no-repeat;
	font-size: 0;
	vertical-align: middle;
}

/* X close icon — replaces dashicons \f335 */
.menu-toggle.activated.dashicons-before::before {
	content: "" !important;
	width: 28px;
	height: 28px;
	border: 0;
	padding: 0;
	background:
		linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat,
		linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat;
	transform: rotate(45deg);
}

/* Sub-menu toggle arrow — replaces dashicons-arrow-down-alt2 \f347 */
.sub-menu-toggle.dashicons-before::before {
	content: "" !important;
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	font-size: 0;
	vertical-align: middle;
	margin-top: -2px;
}

.sub-menu-toggle.activated.dashicons-before::before {
	transform: rotate(225deg);
	margin-top: 2px;
}

/* FAQ chevron down — replaces dashicons \f132 */
.gs-faq__question::after {
	content: "" !important;
	display: inline-block;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	font-family: inherit !important;
	float: right;
	margin-top: 6px;
}

/* FAQ chevron up — replaces dashicons \f460 */
.gs-faq__question.gs-faq--expanded::after {
	content: "" !important;
	transform: rotate(225deg);
	margin-top: 10px;
}

/* WooCommerce active tab minus — replaces dashicons \f147 */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after {
	content: "" !important;
	display: inline-block;
	width: 12px;
	height: 0;
	border-top: 2px solid currentColor;
	font-family: inherit !important;
	float: right;
	margin-top: 10px;
}

/* =================================================================
   Performance: Remove fade-in animation (causes CLS)
   ================================================================= */

.site-container {
	animation: none;
}

/* =================================================================
   Performance: Tighten transition selectors
   ================================================================= */

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button {
	transition:
		color 0.2s ease-in-out,
		background-color 0.2s ease-in-out,
		border-color 0.2s ease-in-out;
}

input:focus,
textarea:focus {
	transition:
		border-color 0.2s ease-in-out,
		box-shadow 0.2s ease-in-out;
}

.gallery img {
	transition: opacity 0.2s ease-in-out;
}

/* =================================================================
   Editor Colour Palette Utility Classes
   ================================================================= */

.has-sage-color {
	color: #9fb7a1;
}
.has-sage-background-color {
	background-color: #9fb7a1;
}

.has-cloud-dancer-color {
	color: #f0eee9;
}
.has-cloud-dancer-background-color {
	background-color: #f0eee9;
}

.has-clay-color {
	color: #e6ded9;
}
.has-clay-background-color {
	background-color: #e6ded9;
}

.has-dark-purple-color {
	color: #897d9e;
}
.has-dark-purple-background-color {
	background-color: #897d9e;
}

.has-light-purple-color {
	color: #b7a5ec;
}
.has-light-purple-background-color {
	background-color: #b7a5ec;
}

.has-warm-stone-color {
	color: #d1c7c1;
}
.has-warm-stone-background-color {
	background-color: #d1c7c1;
}

.has-soft-taupe-color {
	color: #b8ada6;
}
.has-soft-taupe-background-color {
	background-color: #b8ada6;
}

.has-ash-grey-color {
	color: #9a9a95;
}
.has-ash-grey-background-color {
	background-color: #9a9a95;
}

.has-charcoal-ink-color {
	color: #3e3e3c;
}
.has-charcoal-ink-background-color {
	background-color: #3e3e3c;
}

.has-muted-olive-color {
	color: #7f927f;
}
.has-muted-olive-background-color {
	background-color: #7f927f;
}

.has-muted-petal-color {
	color: #e0bfc1;
}
.has-muted-petal-background-color {
	background-color: #e0bfc1;
}

.has-lavender-grey-color {
	color: #b7b4c2;
}
.has-lavender-grey-background-color {
	background-color: #b7b4c2;
}

/* =================================================================
   CTA Pill Button (Gutenberg block style)
   ================================================================= */

.site-container .wp-block-button.is-style-cta-pill .wp-block-button__link,
.nk-cta-pill {
	display: inline-block;
	background-color: #f0eee9;
	color: #3e3e3c;
	border: 1px solid #9fb7a9;
	border-radius: 999px;
	box-shadow: 0 0 0 4px #e6ded9;
	padding: 15px 40px;
	font-weight: 600;
	text-decoration: none;
}

.site-container .wp-block-button.is-style-cta-pill .wp-block-button__link:hover,
.site-container .wp-block-button.is-style-cta-pill .wp-block-button__link:focus,
.nk-cta-pill:hover,
.nk-cta-pill:focus {
	background-color: #e6ded9;
	color: #3e3e3c;
}

/* =================================================================
   Footer CTA Section
   ================================================================= */

.nk-footer-cta {
	background-color: #e6ded9;
	border-top: 3px solid;
	border-image: linear-gradient(to right, #b7a5ec, #897d9e) 1;
	padding: 40px 0 0 0;
}

.nk-footer-cta .wrap {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.nk-footer-cta-left {
	flex: 1;
}

.nk-footer-cta-right {
	flex-shrink: 0;
}

@media only screen and (max-width: 768px) {
	.nk-footer-cta {
		padding: 30px 20px 0;
	}

	.nk-footer-cta .widget {
		margin: 0;
	}

	.nk-footer-cta .wrap {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}

	.nk-footer-cta-left,
	.nk-footer-cta-right {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
}

/* =================================================================
   Widgets
   ================================================================= */

.widget-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 10px;
}

/* =================================================================
   Footer Widget Areas
   ================================================================= */

.nk-footer-widgets {
	padding: 0px 0 40px;
	background-color: #e6ded9;
	color: #3e3e3c;
}

.nk-footer-widgets a {
	color: #3e3e3c;
}

.nk-footer-widgets a:hover,
.nk-footer-widgets a:focus {
	color: #9fb7a1;
}

.nk-footer-widgets .wrap {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: 30px;
}

.nk-footer-widgets .footer-widget-area {
	flex: 1;
}

.nk-footer-widgets .widget ul > li {
	margin: 0;
}

/* =================================================================
   Content Width Fix
   ================================================================= */

@media only screen and (min-width: 960px) {
	.full-width-content .content {
		width: 100%;
	}
}

@media only screen and (max-width: 768px) {
	.nk-footer-widgets {
		padding: 30px 20px;
	}

	.nk-footer-widgets .widget {
		margin: 0;
	}

	.nk-footer-widgets .wrap {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}
}

/* =================================================================
   Simple Post Block
   ================================================================= */

@media only screen and (min-width: 960px) {
	.spb-post-item.spb-layout-image-left .spb-post-image {
		flex: 0 0 50%;
	}

	.spb-post-item.spb-layout-image-right .spb-post-image {
		flex: 0 0 50%;
	}

	.spb-post-title {
		margin: 0 0 20px;
		font-size: 1.8em;
		line-height: 1.3;
	}

	.spb-post-excerpt {
		margin-bottom: 10px;
	}
}

/* Image block – rounded corner styles */
.wp-block-image.is-style-rounded-sm img {
	border-radius: 8px;
}
.wp-block-image.is-style-rounded-md img {
	border-radius: 16px;
}
.wp-block-image.is-style-rounded-lg img {
	border-radius: 30px;
}
.wp-block-image.is-style-rounded-full img {
	border-radius: 50%;
}
