/*
Theme Name:   Enfold Child - Juniper Marketing (Vulcan)
Theme URI:    https://kriesi.at/themes/enfold/
Description:  Child theme for the Vulcan site. All customizations live here so parent theme (Enfold) updates can be applied safely. Adds blog listing, single post, and category/tag archive styling on top of Enfold native blog layouts.
Author:       White Label IQ
Author URI:   https://whitelabeliq.com
Template:     enfold
Version:      1.0.0
Text Domain:  enfold-child
*/

/* ==========================================================================
   HOW THIS FILE IS LOADED
   Enfold registers the child style.css as the handle 'avia-style' and enqueues
   it LAST (parent functions.php lines 603 / 765), after base, layout,
   shortcodes, dynamic and custom.css. Everything below therefore already wins
   over the parent CSS - no enqueue code needed. inc/enqueue.php only fixes
   cache busting, because the parent registers this file with the PARENT theme
   version number.
   ========================================================================== */


/* ==========================================================================
   1. BRAND TOKENS
   --------------------------------------------------------------------------
   PLACEHOLDERS - the Vulcan brand values still need to be filled in before the
   staging review. While a colour token stays commented out, every rule below
   falls back to whatever Enfold Theme Options / dynamic CSS already output, so
   an unfilled token changes nothing on the site.
   ========================================================================== */

:root {
	/* --jm-brand-primary:      #000000; */
	/* TODO: brand primary (links, read more, hover) */
	/* --jm-brand-primary-dark: #000000; */
	/* TODO: brand primary, hover / active state */
	/* --jm-heading-color:      #000000; */
	/* TODO: listing + post heading colour */
	/* --jm-body-color:         #000000; */
	/* TODO: post body copy colour */
	/* --jm-meta-color:         #000000; */
	/* TODO: date / category meta colour */
	/* --jm-hairline:           #000000; */
	/* TODO: card + divider border colour */

	/* Typography and rhythm - brand agnostic, safe to keep as-is. */
	--jm-heading-font-weight: 600;
	--jm-listing-title-size: 1.375rem;
	--jm-listing-title-size-mobile: 1.125rem;
	--jm-single-title-size: 2.25rem;
	--jm-single-title-size-mobile: 1.625rem;
	--jm-body-size: 1.0625rem;
	--jm-body-line-height: 1.75;
	--jm-meta-size: 0.8125rem;
	--jm-card-gap: 30px;
	--jm-block-space: 1.5em;
}


/* ==========================================================================
   2. BLOG LISTING - Enfold native blog element, grid layout
   Markup: .slide-entry-wrap > .slide-entry > .slide-image + .slide-content
   ========================================================================== */

.avia-content-slider .slide-entry-title,
.template-blog .slide-entry-title {
	font-size: var(--jm-listing-title-size);
	font-weight: var(--jm-heading-font-weight);
	line-height: 1.3;
	color: var(--jm-heading-color, inherit);
	margin-bottom: 0.4em;
}

.avia-content-slider .slide-entry-title a,
.template-blog .slide-entry-title a {
	color: inherit;
	text-decoration: none;
}

.avia-content-slider .slide-entry-title a:hover,
.template-blog .slide-entry-title a:hover {
	color: var(--jm-brand-primary, inherit);
}

.avia-content-slider .slide-meta,
.template-blog .slide-meta {
	font-size: var(--jm-meta-size);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--jm-meta-color, inherit);
	margin-bottom: 0.6em;
}

.avia-content-slider .slide-entry-excerpt {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--jm-body-color, inherit);
}

/* Cards in a row share a height so the grid reads as a tidy row. */
.avia-content-slider .slide-entry {
	display: flex;
	flex-direction: column;
}

.avia-content-slider .slide-entry .slide-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.avia-content-slider .slide-image {
	overflow: hidden;
	margin-bottom: 0.9em;
}

.avia-content-slider .slide-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Read more sits on the card baseline regardless of excerpt length. */
.avia-content-slider .read-more-link {
	margin-top: auto;
	padding-top: 0.8em;
}

.avia-content-slider .read-more-link .more-link {
	font-size: var(--jm-meta-size);
	font-weight: var(--jm-heading-font-weight);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--jm-brand-primary, inherit);
	text-decoration: none;
}

.avia-content-slider .read-more-link .more-link:hover {
	color: var(--jm-brand-primary-dark, inherit);
	text-decoration: underline;
}


/* ==========================================================================
   3. BLOG LISTING - Enfold native single author / multi-big layout
   Also covers the fallback loop, includes/loop-index.php
   ========================================================================== */

.template-blog .post-title {
	font-size: var(--jm-listing-title-size);
	font-weight: var(--jm-heading-font-weight);
	line-height: 1.3;
	color: var(--jm-heading-color, inherit);
}

.template-blog .post-meta-infos,
.template-blog .blog-categories,
.template-blog .date-container {
	font-size: var(--jm-meta-size);
	color: var(--jm-meta-color, inherit);
}

.template-blog .entry-content {
	font-size: var(--jm-body-size);
	line-height: var(--jm-body-line-height);
	color: var(--jm-body-color, inherit);
}

.template-blog .post-entry {
	border-bottom-color: var(--jm-hairline, currentColor);
}


/* ==========================================================================
   4. SINGLE POST - theme default template
   Featured image, title, date, body.
   ========================================================================== */

.single-post .post-title,
.single-post .entry-content-header .post-title {
	font-size: var(--jm-single-title-size);
	font-weight: var(--jm-heading-font-weight);
	line-height: 1.2;
	color: var(--jm-heading-color, inherit);
}

.single-post .post-meta-infos {
	font-size: var(--jm-meta-size);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--jm-meta-color, inherit);
}

.single-post .big-preview img {
	display: block;
	width: 100%;
	height: auto;
}

.single-post .entry-content {
	font-size: var(--jm-body-size);
	line-height: var(--jm-body-line-height);
	color: var(--jm-body-color, inherit);
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.single-post .entry-content>* {
	margin-bottom: var(--jm-block-space);
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
	font-weight: var(--jm-heading-font-weight);
	line-height: 1.25;
	color: var(--jm-heading-color, inherit);
	margin-top: 1.8em;
	margin-bottom: 0.6em;
}

.single-post .entry-content h2 {
	font-size: 1.625rem;
}

.single-post .entry-content h3 {
	font-size: 1.3125rem;
}

.single-post .entry-content h4 {
	font-size: 1.125rem;
}

.single-post .entry-content a {
	color: var(--jm-brand-primary, inherit);
}

.single-post .entry-content ul,
.single-post .entry-content ol {
	padding-left: 1.4em;
}

.single-post .entry-content li {
	margin-bottom: 0.4em;
}

.single-post .entry-content blockquote {
	border-left: 3px solid var(--jm-brand-primary, currentColor);
	padding-left: 1.1em;
	font-style: italic;
}

.single-post .entry-content img,
.single-post .entry-content iframe,
.single-post .entry-content video {
	max-width: 100%;
	height: auto;
}


/* ==========================================================================
   5. CATEGORY + TAG ARCHIVES
   Layout is aligned to the listing in PHP (inc/blog-style.php); these rules
   only align the archive chrome.
   ========================================================================== */

.archive.category .category-term-description,
.archive.tag .category-term-description {
	font-size: var(--jm-body-size);
	line-height: var(--jm-body-line-height);
	color: var(--jm-body-color, inherit);
	margin-bottom: 1.5em;
}

/* tag.php prints the term description wrapper unconditionally - collapse it
   when the tag has no description so it does not leave stray whitespace. */
.archive.tag .category-term-description:empty {
	display: none;
	margin: 0;
}

.archive .pagination,
.blog .pagination,
.template-blog .pagination {
	margin-top: 2em;
}


.template-page article .entry-title,
.template-blog article .entry-title {
	font-size: 20px !important;
}

/* .template-page:not(.template-single-blog) article .entry-content,
 .template-blog:not(.template-single-blog) article .entry-content {
	font-size: 16px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
} */

.template-blog article .slide-image {
	height: 180px;
}

.template-blog article .slide-image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	border-radius: 0;
}


.post-entry-type-page .widget .widgettitle,
.template-blog .widget .widgettitle {
	font-size: 20px !important;
}

.post-entry-type-page .widget ul,
.template-blog .widget ul {
	font-size: 16px !important;
	list-style: none;
	padding: 0;
	margin: 0;
}

.post-entry-type-page .widget ul li,
.template-blog .widget ul li {
	padding: 0;
	margin: 0;
	list-style: none;
}

.post-entry-type-page .widget ul li + li,
.template-blog .widget ul li + li{
	margin-top: 5px;
}

.post-entry-type-page .widget ul li a,
.template-blog .widget ul li a {
	color: #000;
}

.post-entry-type-page .widget ul li.current-cat a,
.template-blog .widget ul li.current-cat a {
	color: #e53226;
}

.template-blog.template-single-blog .post .entry-content-wrapper .post-title {
	font-size: 32px !important;
}

.template-blog.template-single-blog .post .entry-content-wrapper p {
	font-size: 16px !important;
}

.template-page .slide-entry-wrap {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.template-page .slide-entry-wrap article {
	width: 100% !important;
	margin: 0 !important;
}

.template-page .slide-entry-wrap article .slide-image {
	width: 100%;
	height: 200px;
	margin-bottom: 0;
	border-radius: 0;
}

.template-blog.template-single-blog .post .entry-content-wrapper .post-title {
	font-size: 32px !important;
	margin-bottom: 20px;
}

.content .widget .widgettitle:first-child,
.flex_column .widget .widgettitle:first-child {
	margin-top: 0;
}

.single-post .entry-content img {
	width: 100%;
}

.single-post .entry-content h2 {
	font-size: 26px !important;
	font-weight: 400 !important;
}

.single-post .entry-content h3 {
	font-size: 20px !important;
	font-weight: 400 !important;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
	padding-left: 5px;
	margin-left: 0;
}

/* Single post banner: featured image locked to a fixed height.
   The image is served at full size (see inc/blog-style.php), so the
   object-fit: cover below is the ONLY crop applied - the double-crop
   that made the earlier 500px/400px box a problem no longer occurs.
   Height sits on the inner <a>, not on .big-preview.single-big, because
   that wrapper carries Enfold's own 0 50px 10px 0 padding.
   Below 1300px the column narrows while the sidebar is still present, so
   a locked 600px would go near-square and crop ~32% off the sides; the
   5/4 band holds the desktop proportion instead. 5/4 resolves to ~600px
   at the full 753px column, so the desktop rendering is unchanged.
   1024px and 767px then widen the ratio as the column goes full width. */

.big-preview.single-big a {
	display: block;
	height: 500px;
	overflow: hidden;
}

.big-preview.single-big img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center center;
}

.inner_sidebar {
	margin-left: 30px !important;
}

.avia-content-slider .slide-entry-excerpt {
	font-size: 16px !important;
}

/* ==========================================================================
   6. RESPONSIVE
   Enfold breakpoints: 1024 tablet landscape, 989 tablet, 767 mobile.
   ========================================================================== */

@media only screen and (max-width: 1300px) {

	.big-preview.single-big a {
		height: 450px;
/* 		aspect-ratio: 5 / 4; */
	}

}

@media only screen and (max-width: 1024px) {
	.big-preview.single-big a {
		height: 390px;
/* 		aspect-ratio: 16 / 9; */
	}

	:root {
		--jm-single-title-size: 1.875rem;
		--jm-card-gap: 24px;
	}

	.template-page .slide-entry-wrap {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media only screen and (max-width: 989px) {

	.avia-content-slider .slide-entry-title,
	.template-blog .post-title {
		font-size: 1.25rem;
	}


}

@media only screen and (max-width: 767px) {
	.big-preview.single-big a {
/* 		aspect-ratio: 4 / 3; */
		height:350px;
	}

	:root {
		--jm-block-space: 1.25em;
	}

	.avia-content-slider .slide-entry-title,
	.template-blog .post-title {
		font-size: var(--jm-listing-title-size-mobile);
	}

	.single-post .post-title,
	.single-post .entry-content-header .post-title {
		font-size: var(--jm-single-title-size-mobile);
	}

	.single-post .entry-content h2 {
		font-size: 1.375rem;
	}

	.single-post .entry-content h3 {
		font-size: 1.1875rem;
	}

	/* Enfold stacks grid entries at this width - give them breathing room. */
	.avia-content-slider .slide-entry {
		margin-bottom: var(--jm-card-gap);
	}

	.avia-content-slider .slide-entry:last-child {
		margin-bottom: 0;
	}

	.template-page .slide-entry-wrap {
		grid-template-columns: repeat(2, 1fr);
	}

	.template-blog main {
		width: 100% !important;
	}

	.template-single-blog .big-preview.single-big {
		padding: 0;
		margin-bottom: 15px;
	}

	.template-page .av-special-heading-tag {
		padding-block: 25px !important;
	}

	.single-post .entry-content h2 {
		font-size: 22px !important;
	}

	.single-post .entry-content h3 {
		font-size: 18px !important;
	}
	.template-page .slide-entry-wrap article .slide-image {
		height:290px;
	}
}

@media only screen and (max-width: 575px) {

	.template-page .slide-entry-wrap {
		grid-template-columns: repeat(1, 1fr);
	}
	
	.big-preview.single-big a {
		height:300px;
	}
	.template-page .slide-entry-wrap article .slide-image {
		height:300px;
	}
}

/* ==========================================================================
   7. CATEGORY + TAG ARCHIVES - align with the /blog/ listing page
   --------------------------------------------------------------------------
   The card grid in section 5 is scoped to .template-page (builder pages).
   Archives render through the theme templates, so the same grid is repeated
   here for #top.archive. Layout itself is aligned in inc/blog-style.php.
   ========================================================================== */

#top.archive .slide-entry-wrap {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--jm-card-gap);
}

#top.archive .slide-entry-wrap .slide-image {
	width: 100%;
	margin-bottom: 0;
	height: 200px;
}

#top.archive .slide-entry-wrap article {
	width: 100% !important;
	margin: 0 !important;
}

/* The read more link sits inside .entry-content, so the 3 line clamp from
   section 5 would cut it off on the archives - excerpts are already capped
   at 160 characters in inc/blog-style.php. */

#top.archive .sidebar_right {
	border-top: 0;
	border-left-width: 0 !important;
}

#top.archive .slide-entry .entry-content {
	display: block !important;
	overflow: visible !important;
	-webkit-line-clamp: none !important;
}

/* Match the 4/5 + 1/5 proportions the listing page uses. */
#top.archive .content.av-content-small {
	width: 78.8%;
	border: 0;
}

#top.archive aside.sidebar .inner_sidebar {
	margin-left: 30% !important;
}

/* Same 66px gutter between the cards and the widgets as the listing page. */
#top.archive .content .entry-content-wrapper {
	padding-right: 0 !important;
}

/* The 50px gutter already comes from the content padding, so the theme
   indent on the sidebar is not needed - it was squeezing the widgets. */
#top.archive .sidebar .inner_sidebar {
	margin-left: 0;
}

/* Pagination sits under the grid - .slide-entry-wrap already adds 40px. */
#top.archive .pagination {
	clear: both;
	margin-top: 10px;
}

/* Archive title - markup printed from inc/blog-style.php. */
.jm-archive-title-wrap {
	padding-bottom: 10px;
}

.jm-archive-title-wrap .av-special-heading {
	overflow: hidden;
}

#top .jm-archive-title-wrap .av-special-heading-tag {
	float: none;
	display: block;
	width: 100%;
	font-size: 50px;
	font-weight: 700;
	line-height: 1.1;
	color: #e53226;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0;
}

.template-page .slide-entry-wrap article .slide-image img {
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.avia-content-slider .slide-image {
	border-radius: 0;
}

.avia-content-slider .slide-entry .slide-content {
	padding: 15px;
	border: 1px solid #e1e1e1;
	border-top: 0;
}

.archive.category .av-special-heading {
	padding: 50px 0 50px 0;
}

@media only screen and (max-width: 1024px) {
	#top.archive .slide-entry-wrap {
		grid-template-columns: repeat(2, 1fr);
	}

	#top.archive .content.av-content-small {
		width: 73%;
	}
}

@media only screen and (max-width: 767px) {
	#top.archive .slide-entry-wrap {
		grid-template-columns: repeat(2, 1fr);
	}

	#top.archive .content .entry-content-wrapper {
		padding-right: 0;
	}

	#top .jm-archive-title-wrap .av-special-heading-tag {
		font-size: 30px;
	}

	#top #wrap_all .all_colors h1 {
		color: #e53226;
		font-size: 30px;
	}
}

@media only screen and (max-width: 575px) {
	#top.archive .slide-entry-wrap {
		grid-template-columns: repeat(1, 1fr);
	}
}