/*
 * Elefante theme overrides
 * Loaded after the child theme and all page-specific stylesheets.
 */

:root {
	--elefante-gold: #e6a53c;
	--elefante-brown: #6e503e;
	--elefante-black: #111111;
	--elefante-muted: #666666;
	--elefante-soft: #fff7e8;
}

/* About page typography and links. */
body.page-id-358 .elementor-358,
body.page-id-358 .elementor-358 :where(h1, h2, h3, h4, h5, h6) {
	color: var(--elefante-black);
}

body.page-id-358 .elementor-358 .elementor-widget-text-editor {
	color: #222222;
	font-size: 17px;
	letter-spacing: .012em;
	line-height: 1.75;
}

/* Gilroy XBold needs a little more breathing room on the About page. */
body.page-id-358 .elementor-358 .elementor-heading-title {
	letter-spacing: .012em !important;
	line-height: 1.22 !important;
}

body.page-id-358 .elementor-358 .elementor-element-530fccd .elementor-heading-title {
	letter-spacing: .015em !important;
	line-height: 1.16 !important;
}

/* Small left-column labels: “Về Elefante” and matching sections below. */
body.page-id-358 .elementor-358 :is(
	.elementor-element-9eb89a1,
	.elementor-element-adb2430,
	.elementor-element-593cec4
) .elementor-heading-title {
	font-size: 18px !important;
	letter-spacing: .025em !important;
	line-height: 1.45 !important;
}

body.page-id-358 .elementor-358 :is(
	.elementor-element-edcf037,
	.elementor-element-c551d30
) {
	font-size: 17px !important;
	letter-spacing: .012em !important;
	line-height: 1.75 !important;
}

body.page-id-358 .elementor-358 .elementor-widget-text-editor :where(p, li) {
	line-height: inherit;
}

@media (max-width: 767px) {
	body.page-id-358 .elementor-358 .elementor-heading-title {
		line-height: 1.26 !important;
	}

	body.page-id-358 .elementor-358 :is(
		.elementor-element-9eb89a1,
		.elementor-element-adb2430,
		.elementor-element-593cec4
	) .elementor-heading-title {
		font-size: 17px !important;
		line-height: 1.5 !important;
	}

	body.page-id-358 .elementor-358 .elementor-widget-text-editor,
	body.page-id-358 .elementor-358 :is(
		.elementor-element-edcf037,
		.elementor-element-c551d30
	) {
		font-size: 16px !important;
		line-height: 1.72 !important;
	}
}

body.page-id-358 .elementor-358 a:not(.nm-banner-link) {
	color: var(--elefante-black);
}

body.page-id-358 .elementor-358 a:not(.nm-banner-link):hover,
body.page-id-358 .elementor-358 a:not(.nm-banner-link):focus-visible {
	color: var(--elefante-gold);
}

/* Blog palette. */
body.blog,
body.archive,
body.single-post,
.nm-child-blog-search-results {
	--nm-blog-ink: var(--elefante-black);
	--nm-blog-blue: var(--elefante-gold);
	--nm-blog-muted: var(--elefante-muted);
	--nm-blog-line: rgba(17, 17, 17, .14);
	--nm-blog-soft: var(--elefante-soft);
}

.nm-child-single-content a,
.nm-child-blog-search-heading > span,
.nm-child-blog-card__meta a {
	color: var(--elefante-black);
}

/* Shared gold button treatment. */
.nm-child-single-taxonomy .post-categories a,
.nm-child-single-tags a,
.nm-child-single-share a,
.nm-child-single-comments input.submit,
.nm-child-blog-card__more,
.nm-child-blog-search button,
.nm-child-blog-cta a,
.nm-child-blog-filter.is-active,
.nm-child-blog-pagination > .page-numbers.current {
	border-color: transparent;
	color: var(--elefante-black);
	background: var(--elefante-gold);
}

.nm-child-single-taxonomy .post-categories a:hover,
.nm-child-single-tags a:hover,
.nm-child-single-share a:hover,
.nm-child-single-comments input.submit:hover,
.nm-child-single-comments input.submit:focus-visible,
.nm-child-blog-card__more:hover,
.nm-child-blog-card__more:focus-visible,
.nm-child-blog-search button:hover,
.nm-child-blog-search button:focus-visible,
.nm-child-blog-cta a:hover,
.nm-child-blog-cta a:focus-visible {
	border-color: var(--elefante-brown);
	color: #ffffff;
	background: var(--elefante-brown);
}

/* The category list is a nested WordPress list; normalize it as buttons. */
.nm-child-single-taxonomy .post-categories {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nm-child-single-taxonomy .post-categories li {
	margin: 0;
}

.nm-child-single-taxonomy .post-categories a,
.nm-child-single-tags a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 15px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.nm-child-single-share a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

/* Hide an empty previous/next card generated by WordPress. */
.nm-child-single-pagination__item:not(:has(a)) {
	display: none;
}

.nm-child-single-pagination:has(.is-next:not(:has(a))) {
	grid-template-columns: minmax(0, 1fr);
}

/* Compact homepage section headings and actions across all mobile sizes. */
@media (max-width: 767px) {
	.nm-home-best-sellers-header h2 {
		flex: 1 1 auto;
		min-width: 0;
		max-width: none;
		font-size: 27px;
		line-height: 1.15;
		letter-spacing: -0.035em;
		white-space: nowrap;
	}

	.nm-home-best-sellers-header > a {
		min-height: 0;
		padding: 4px 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		color: #111;
		font-size: 13px;
	}

	.nm-home-best-sellers-header > a:hover,
	.nm-home-best-sellers-header > a:focus-visible {
		border: 0;
		background: transparent;
		box-shadow: none;
		color: var(--elefante-gold);
		transform: none;
	}

	.nm-home-best-sellers-header > a::after {
		margin-left: 7px;
		font-size: 16px;
	}

	.nm-home-cases__header h2 {
		font-size: 27px;
		line-height: 1.15;
		letter-spacing: -0.035em;
		white-space: nowrap;
	}
}

/* Display face used only for large hero/banner headings. */
@font-face {
  font-family: "SVN Gilroy XBold";
  src: url("../fonts/SVN-Gilroy_XBold.otf") format("opentype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --nm-font-display-xbold: "SVN Gilroy XBold", Arial, sans-serif;
}

/* Keep body copy in the site font; use XBold for prominent hero titles only. */
.nm-home-hero-title,
.nm-home-hero__title,
.nm-hero-title,
.nm-hero-banner h1,
.nm-hero-banner .elementor-heading-title,
.nm-contact-hero h1,
.nm-story-hero h1,
.nm-faq-hero h1,
.nm-child-single-hero h1,
.nm-collections-hero h1,
.nm-collections-mobile-featured-title,
.nm-collection-detail__hero h1,
.nm-elementor-collection-title .elementor-heading-title,
.nm-customs-hero h1,
#nm-customs-title,
.nm-customs-coming-soon h1,
.nm-corporate-hero h1,
.nm-child-order-track__hero h1,
.nm-policy-hero h1,
#nm-collection-title {
  font-family: var(--nm-font-display-xbold) !important;
  font-weight: 800;
}

/* Footer navigation: no visual hover fill, only the pointer cursor. */
.nm-footer-card .nm-footer-column-title,
.nm-footer-card .nm-footer-column-title:hover,
.nm-footer-card .nm-footer-column-title:focus,
.nm-footer-card .nm-footer-column-title:active {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--nm-footer-text) !important;
  transform: none !important;
  cursor: pointer;
}

.nm-footer-card .nm-footer-column-list a,
.nm-footer-card .nm-footer-column-list a:hover,
.nm-footer-card .nm-footer-column-list a:focus,
.nm-footer-card .nm-footer-column-list a:active {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--nm-footer-text) !important;
  opacity: 1;
  text-decoration: none;
  transform: none !important;
  cursor: pointer;
}
