/*
Theme Name: Glow
Description: Twenty Twenty-Five child theme for Glow Marketing, matching the look of the old GridStack theme (header, title band, footer). Portfolio content and grids come from the Glow Portfolio plugin.
Template: twentytwentyfive
Version: 1.4.1
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: glow
Update URI: false
*/

/* Vertical rhythm: one gap between every section of every page */
:root {
	--glow-space: 48px;
}
@media (max-width: 600px) {
	:root {
		--glow-space: 32px;
	}
}
.wp-site-blocks > * {
	margin-block-start: 0;
}
.wp-site-blocks > main {
	padding-top: var(--glow-space);
	padding-bottom: var(--glow-space);
}
.wp-site-blocks > main > * + * {
	margin-block-start: var(--glow-space);
}

/* Header -- GridStack ".top-nav" plus the site's custom CSS */
.glow-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 99;
	background: rgba(255, 255, 255, 0.97);
	border-top: 2px solid #e72f31;
}
.glow-header .wp-block-site-logo img {
	width: 140px;
	height: auto;
}

/* Main menu -- GridStack ".sf-menu" */
.glow-header .wp-block-navigation {
	font-family: Raleway, arial, sans-serif;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.glow-header .wp-block-navigation-item__content {
	color: #555;
}
.glow-header .wp-block-navigation-item__content:hover,
.glow-header .wp-block-navigation-item__content:focus {
	color: #000;
}
.glow-header .current-menu-item > .wp-block-navigation-item__content,
.glow-header .wp-block-navigation-item__content[aria-current="page"] {
	color: #e72f31;
}
.glow-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #f3f3f3;
	border: 1px solid #dcdcdc;
	color: #555;
}
.glow-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 15px;
}

/* Title band -- GridStack ".pagetitle" */
.glow-pagetitle {
	margin: 0;
	padding-top: var(--glow-space);
	padding-bottom: var(--glow-space);
	background: #eaeaea;
	border-top: 1px dashed #ccc;
}
/* Text sits on the left edge of the 960px container, at most 780px wide. */
.glow-pagetitle > * {
	max-width: 780px;
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size, 960px)) / 2)) !important;
}
.glow-pagetitle .glow-pagetitle-title {
	margin: 0;
	font-size: 56px;
	font-weight: 200;
	line-height: 58px;
	color: #000;
}
.glow-pagetitle .glow-pagetitle-subtitle {
	margin-top: 0;
	font-size: 24px;
	font-weight: 300;
	line-height: 38px;
	color: rgba(0, 0, 0, 0.5);
}
.glow-pagetitle > :last-child,
.glow-posttitle-text > :last-child {
	margin-bottom: 0;
}
@media (max-width: 600px) {
	.glow-pagetitle .glow-pagetitle-title {
		font-size: 40px;
		line-height: 44px;
	}
	.glow-pagetitle .glow-pagetitle-subtitle {
		font-size: 20px;
		line-height: 30px;
	}
}

/* Content -- from the site's GridStack custom CSS */
.wp-block-post-content img {
	max-width: 100%;
	height: auto;
	border: 1px solid #eaeaea;
}
.home .wp-block-post-content p {
	font-size: 22px;
	line-height: 1.8em;
}
/* Client List page -- a three-column A-Z directory */
.wp-block-post-content h4:empty {
	display: none;
}
.wp-block-post-content h4:has(+ .client-list),
.wp-block-post-content h4:has(+ ul > li > .client-list) {
	margin: var(--glow-space) 0 8px;
	padding-bottom: 14px;
	border-bottom: 1px solid #eaeaea;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #000;
}
.wp-block-post-content h4:first-child:has(+ .client-list) {
	margin-top: 0;
}
.wp-block-post-content ul:has(> li > .client-list) {
	margin: 0;
	padding: 0;
	list-style: none;
}
.wp-block-post-content ul:has(> li > .client-list) > li {
	margin: 0;
}
.client-list {
	margin: 0;
	padding: 0;
	list-style: none;
	column-count: 3;
	column-gap: 32px;
}
.client-list li {
	break-inside: avoid;
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px dotted #ccc;
	font-size: 14px;
	line-height: 1.5;
	color: #999;
}
.client-list li a {
	color: #555;
}
.client-list li a::after {
	content: " \2197";
	font-size: 11px;
	color: #ccc;
	transition: color 0.2s;
}
.client-list li a:hover,
.client-list li a:focus-visible {
	color: #e72f31;
}
.client-list li a:hover::after,
.client-list li a:focus-visible::after {
	color: #e72f31;
}
@media (max-width: 900px) {
	.client-list {
		column-count: 2;
	}
}
@media (max-width: 600px) {
	.client-list {
		column-count: 1;
	}
}

/* Footer */
.glow-footer {
	background: #222;
	color: #999;
	padding-top: var(--glow-space);
	padding-bottom: 28px;
	font-size: 14px;
	line-height: 1.8;
}
.glow-footer a {
	color: #ccc;
}
.glow-footer a:hover,
.glow-footer a:focus-visible {
	color: #fff;
}
.glow-footer-columns {
	gap: 40px;
	margin-bottom: var(--glow-space);
}
.glow-footer p {
	margin: 0;
}
.glow-footer .wp-block-site-logo img {
	width: 120px;
	height: auto;
	filter: brightness(0) invert(1);
	opacity: 0.85;
}
.glow-footer-brand > * + * {
	margin-top: 16px;
}
.glow-footer-tagline {
	font-size: 20px;
	font-weight: 200;
	color: #fff;
}
.glow-footer .glow-footer-heading {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #444;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #fff;
}
.glow-footer-nav {
	gap: 6px;
	font-size: 14px;
}
.glow-footer-nav .wp-block-navigation-item__content {
	color: #ccc;
}
.glow-footer-nav .wp-block-navigation-item__content:hover {
	color: #fff;
}
.glow-footer-cta {
	margin-top: 14px !important;
}
.glow-footer-cta a {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #555;
	font-size: 11px;
	line-height: 1.2;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.glow-footer-cta a:hover,
.glow-footer-cta a:focus-visible {
	border-color: #e72f31;
	background: #e72f31;
	color: #fff;
}
.glow-footer-social {
	gap: 12px;
}
.glow-footer-social .wp-social-link {
	opacity: 0.7;
	transition: opacity 0.2s;
}
.glow-footer-social .wp-social-link:hover {
	opacity: 1;
}
.glow-footer-bottom {
	padding-top: 24px;
	border-top: 1px solid #333;
	font-size: 12px;
	letter-spacing: 0.5px;
	color: #777;
}
.glow-footer-bottom a {
	color: #999;
}
@media (max-width: 781px) {
	.glow-footer-columns {
		gap: 32px;
	}
}

/* News cards -- blog index and post archives */
.glow-news .glow-news-grid {
	gap: 32px;
}
@media (min-width: 601px) and (max-width: 900px) {
	.glow-news .glow-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.glow-news-grid > li {
	display: flex;
	flex-direction: column;
	margin: 0;
	background: #fff;
	border: 1px solid #eaeaea;
	transition: border-color 0.3s, box-shadow 0.3s;
}
.glow-news-grid > li:hover,
.glow-news-grid > li:focus-within {
	border-color: #dcdcdc;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.glow-news-image {
	margin: 0;
	overflow: hidden;
	background: #f3f3f3;
}
.glow-news-image a {
	display: block;
	height: 100%;
}
.glow-news-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease-in-out;
}
.glow-news-grid > li:hover .glow-news-image:not(.glow-news-image--placeholder) img {
	transform: scale(1.04);
}
.glow-news-image--placeholder a {
	display: flex;
	align-items: center;
	justify-content: center;
}
.glow-news-image--placeholder img {
	width: 45%;
	height: auto;
	object-fit: contain;
	opacity: 0.55;
}
.glow-news-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 24px 24px;
}
.glow-news-body > * {
	margin: 0;
}
.glow-news-date {
	font-size: 11px;
	line-height: 18px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #999;
}
.glow-news-body .glow-news-title {
	margin-top: 8px;
	font-size: 21px;
	font-weight: 300;
	line-height: 1.35;
	color: #000;
}
.glow-news-title a {
	color: inherit;
}
.glow-news-title a:hover {
	color: #e72f31;
}
.glow-news-excerpt {
	display: flex;
	flex-direction: column;
	flex: 1;
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.75;
	color: #777;
}
.glow-news-excerpt .wp-block-post-excerpt__excerpt {
	margin: 0 0 16px;
}
.glow-news-excerpt .wp-block-post-excerpt__more-text {
	margin: auto 0 0;
}
.glow-news-excerpt .wp-block-post-excerpt__more-link {
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #e72f31;
}
.glow-news-excerpt .wp-block-post-excerpt__more-link:hover {
	color: #000;
}

/* Pagination -- boxed like the filter bar */
.glow-pagination {
	margin-top: var(--glow-space);
	gap: 5px;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.glow-pagination a,
.glow-pagination .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	border: 1px solid transparent;
	color: #999;
}
.glow-pagination a:hover,
.glow-pagination .page-numbers.current {
	border-color: #dcdcdc;
	color: #555;
}

/* Post title band -- date above the title, arrows + all-news icon on the right (GridStack post controls) */
.glow-pagetitle > .glow-posttitle-row {
	max-width: var(--wp--style--global--wide-size, 960px);
	width: 100%;
	gap: 24px;
}
.glow-posttitle-text {
	max-width: 780px;
}
.glow-posttitle-text > * {
	margin-top: 0;
}
.glow-posttitle-date {
	margin-bottom: 10px;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #999;
}
.glow-postnav {
	flex-shrink: 0;
	gap: 4px;
	padding-top: 4px;
}
.glow-postnav > * {
	margin: 0;
}
.glow-postnav a {
	position: relative;
	display: block;
	width: 32px;
	height: 32px;
	font-size: 0;
	color: transparent;
	overflow: hidden;
}
.glow-postnav-prev a::before,
.glow-postnav-next a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-top: 1.5px solid #aaa;
	border-left: 1.5px solid #aaa;
	transition: border-color 0.2s;
}
.glow-postnav-prev a::before {
	transform: translate(-25%, -50%) rotate(-45deg);
}
.glow-postnav-next a::before {
	transform: translate(-75%, -50%) rotate(135deg);
}
.glow-back-to-news a::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 8px;
	width: 7px;
	height: 7px;
	border: 1.5px solid #aaa;
	box-shadow: 9px 0 0 -1.5px #eaeaea, 9px 0 0 0 #aaa, 0 9px 0 -1.5px #eaeaea, 0 9px 0 0 #aaa, 9px 9px 0 -1.5px #eaeaea, 9px 9px 0 0 #aaa;
	transition: border-color 0.2s;
}
.glow-postnav a:hover::before,
.glow-postnav a:focus-visible::before {
	border-color: #e72f31;
}
@media (max-width: 600px) {
	.glow-pagetitle > .glow-posttitle-row {
		flex-wrap: wrap !important;
	}
	.glow-postnav {
		order: -1;
		margin-left: -8px;
	}
}

/* Post body */
.glow-article .glow-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: var(--glow-space);
}
.glow-post-terms a {
	display: inline-block;
	padding: 6px 10px;
	border: 1px solid #dcdcdc;
	font-size: 11px;
	line-height: 1.2;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #999;
}
.glow-post-terms a:hover {
	border-color: #e72f31;
	color: #e72f31;
}
.glow-article-nav {
	gap: 24px;
	margin-top: var(--glow-space);
	padding: 24px 0;
	border-top: 1px dashed #ccc;
	border-bottom: 1px dashed #ccc;
	font-size: 15px;
	line-height: 1.5;
}
.glow-article-nav > * {
	max-width: 45%;
	margin: 0;
}
.glow-article-nav .post-navigation-link-next {
	margin-left: auto;
	text-align: right;
}
.glow-article-nav .post-navigation-link__label {
	display: block;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #999;
}
.glow-article-nav a {
	color: #000;
}
.glow-article-nav a:hover {
	color: #e72f31;
}
.glow-more-news {
	margin-top: var(--glow-space);
}
.glow-section-title {
	margin: 0 0 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #eaeaea;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #000;
}
.glow-more-news .glow-news-body .glow-news-title {
	font-size: 18px;
}
.glow-article-nav > .wp-block-post-navigation-link {
	display: flex;
	align-items: flex-end;
	gap: 10px;
}
.glow-article-nav .post-navigation-link-next {
	justify-content: flex-end;
}
.glow-article-nav [class*="__arrow-"] {
	color: #999;
	line-height: 1.5;
}
.glow-footer-contact a[href^="mailto:"] {
	white-space: nowrap;
}
.glow-footer .glow-footer-social {
	gap: 10px;
}
