/*
Theme Name: GA Strategy Graceful Child
Theme URI: https://ga-strategy.com/
Description: Site-specific Graceful child theme for GA Strategy with executive charcoal & flame-orange styling, crisp white logo masthead, full-width lead article plus 2-column grid, right sidebar polish, and clean footer copyright.
Author: GA Strategy
Template: graceful
Version: 1.0.1
Text Domain: ga-strategy-graceful-child
*/

:root {
	--gs-charcoal: #16191d;
	--gs-graphite: #232830;
	--gs-orange: #e54800;
	--gs-orange-dark: #c43c00;
	--gs-canvas: #f5f6f8;
	--gs-surface: #ffffff;
	--gs-ink: #16191d;
	--gs-ink-muted: #525b66;
	--gs-border: #e3e6ec;
	--gs-radius: 10px;
}

body.wp-child-theme-ga-strategy-graceful-child {
	background-color: var(--gs-canvas) !important;
	color: var(--gs-ink);
}

/* Visible keyboard focus */
body.wp-child-theme-ga-strategy-graceful-child a:focus-visible,
body.wp-child-theme-ga-strategy-graceful-child button:focus-visible,
body.wp-child-theme-ga-strategy-graceful-child input:focus-visible {
	outline: 3px solid var(--gs-orange);
	outline-offset: 2px;
}

/* Top bar */
#site-header #top-navigation {
	background-color: var(--gs-charcoal);
	color: #e5e8ee;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#site-header #top-navigation a {
	color: #e5e8ee;
}

/* Crisp white masthead tailored to the flame-orange & jet-black GA STRATEGY logo */
#site-header .entry-header {
	background-color: var(--gs-surface) !important;
	background-image: none !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 20px 0 !important;
	border-bottom: 1px solid var(--gs-border);
}

#site-header .site-branding {
	padding: 0 !important;
}

#site-header .site-branding .logo-img {
	display: inline-block;
	max-width: 260px;
}

#site-header .site-branding .logo-img img,
#site-header .header-logo a img,
#site-header .custom-logo {
	max-height: 112px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

#site-header .site-description:empty {
	display: none;
}

/* Executive charcoal primary navigation with signal-orange accent */
#site-header #main-navigation {
	background-color: var(--gs-charcoal) !important;
	border-bottom: 3px solid var(--gs-orange);
	box-shadow: 0 4px 14px rgba(22, 25, 29, 0.14);
}

#site-header #main-navigation #site-menu > li > a,
#site-header #main-navigation #primary-menu > li > a,
#site-header #main-navigation .main-menu > li > a,
#site-header #main-navigation .responsive-menu-btn,
#site-header #main-navigation .responsive-menu-btn i,
#site-header #main-navigation .navigation-search-button,
#site-header #main-navigation .navigation-search-button i {
	color: #ffffff !important;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: color 0.2s ease, background-color 0.2s ease;
}

#site-header #main-navigation #site-menu > li > a:hover,
#site-header #main-navigation #site-menu > li.current-menu-item > a,
#site-header #main-navigation #primary-menu > li > a:hover,
#site-header #main-navigation #primary-menu > li.current-menu-item > a,
#site-header #main-navigation .main-menu > li > a:hover,
#site-header #main-navigation .main-menu > li.current-menu-item > a,
#site-header #main-navigation .navigation-search-button:hover i {
	color: #ff7a3d !important;
}

#site-header #main-navigation #site-menu .sub-menu,
#site-header #main-navigation .sub-menu {
	background-color: var(--gs-surface) !important;
	border: 1px solid var(--gs-border);
	box-shadow: 0 10px 24px rgba(22, 25, 29, 0.14);
}

#site-header #main-navigation #site-menu .sub-menu a,
#site-header #main-navigation .sub-menu a {
	background-color: var(--gs-surface) !important;
	color: var(--gs-ink) !important;
}

#site-header #main-navigation #site-menu .sub-menu a:hover,
#site-header #main-navigation .sub-menu a:hover {
	background-color: var(--gs-canvas) !important;
	color: var(--gs-orange) !important;
}

#site-header #main-navigation .responsive-menu-wrapper {
	background-color: var(--gs-graphite);
}

#site-header #main-navigation #responsive-menu a {
	color: #ffffff !important;
}

/* Boxed main content + right sidebar */
.main-content,
.main-content.wrapped-content {
	background-color: transparent !important;
	margin-top: 26px;
	margin-bottom: 36px;
}

.sidebar-right .graceful-widget,
.sidebar-right .widget {
	background-color: var(--gs-surface);
	border: 1px solid var(--gs-border);
	border-radius: var(--gs-radius);
	padding: 20px;
	margin-bottom: 22px;
	box-shadow: 0 2px 10px rgba(22, 25, 29, 0.04);
}

.sidebar-right .graceful-widget > h2,
.sidebar-right .widget-title h2,
.sidebar-right .widget-title {
	color: var(--gs-charcoal);
	font-size: 1.05rem;
	font-weight: 700;
	border-bottom: 2px solid var(--gs-border);
	padding-bottom: 8px;
	margin: 0 0 14px;
	position: relative;
}

.sidebar-right .graceful-widget > h2::after,
.sidebar-right .widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 48px;
	height: 2px;
	background-color: var(--gs-orange);
}

.sidebar-right ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-right ul li {
	padding: 8px 0;
	border-bottom: 1px solid var(--gs-border);
}

.sidebar-right ul li:last-child {
	border-bottom: none;
}

.sidebar-right ul a {
	color: var(--gs-ink);
	font-weight: 500;
	text-decoration: none;
}

.sidebar-right ul a:hover {
	color: var(--gs-orange);
	text-decoration: underline;
}

/* Homepage: full-width lead post + 2-column grid (home.php) */
.gs-home .gs-badge {
	display: inline-block;
	align-self: flex-start;
	background-color: var(--gs-orange);
	color: #ffffff;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.gs-home .gs-badge:hover {
	background-color: var(--gs-charcoal);
	color: #ffffff;
}

.gs-home .gs-meta {
	color: var(--gs-ink-muted);
	font-size: 0.85rem;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.gs-home .gs-lead {
	background-color: var(--gs-surface);
	border: 1px solid var(--gs-border);
	border-top: 4px solid var(--gs-orange);
	border-radius: var(--gs-radius);
	padding: 28px;
	margin-bottom: 32px;
	box-shadow: 0 2px 12px rgba(22, 25, 29, 0.05);
}

.gs-home .gs-lead__title {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	line-height: 1.25;
	margin: 0 0 10px;
}

.gs-home .gs-lead__title a {
	color: var(--gs-ink);
	text-decoration: none;
}

.gs-home .gs-lead__title a:hover {
	color: var(--gs-orange);
}

.gs-home .gs-lead__media {
	margin: 20px 0;
}

.gs-home .gs-lead__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	border-radius: 8px;
}

.gs-home .gs-lead__content {
	font-size: 1.04rem;
	line-height: 1.75;
	color: var(--gs-ink);
}

.gs-home .gs-lead__content a {
	color: var(--gs-orange-dark);
	text-decoration: underline;
}

.gs-home .gs-lead__content img {
	max-width: 100%;
	height: auto;
}

.gs-home .gs-grid-heading {
	color: var(--gs-charcoal);
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 18px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--gs-border);
	position: relative;
}

.gs-home .gs-grid-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 56px;
	height: 2px;
	background-color: var(--gs-orange);
}

.gs-home .gs-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 28px;
}

.gs-home .gs-card {
	display: flex;
	flex-direction: column;
	background-color: var(--gs-surface);
	border: 1px solid var(--gs-border);
	border-radius: var(--gs-radius);
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(22, 25, 29, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gs-home .gs-card:hover,
.gs-home .gs-card:focus-within {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(22, 25, 29, 0.09);
}

.gs-home .gs-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--gs-charcoal) 0%, var(--gs-graphite) 100%);
	overflow: hidden;
}

.gs-home .gs-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	color: transparent;
	font-size: 0;
}

.gs-home .gs-card__media--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.gs-home .gs-card__media--empty span {
	color: #ff7a3d;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gs-home .gs-card__body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.gs-home .gs-card__title {
	font-size: 1.1rem;
	line-height: 1.35;
	margin: 0;
}

.gs-home .gs-card__title a {
	color: var(--gs-ink);
	text-decoration: none;
}

.gs-home .gs-card__title a:hover {
	color: var(--gs-orange);
	text-decoration: underline;
}

.gs-home .gs-card__excerpt {
	color: var(--gs-ink-muted);
	font-size: 0.93rem;
	line-height: 1.6;
	margin: 4px 0 0;
}

/* Footer */
#site-footer {
	background-color: var(--gs-charcoal) !important;
	color: #e4e7ec !important;
	border-top: 4px solid var(--gs-orange);
}

#site-footer .footer-widgets {
	padding: 40px 0 24px;
	border-color: rgba(255, 255, 255, 0.12) !important;
}

#site-footer .graceful-widget > h2,
#site-footer .widget-title,
#site-footer .widget-title h2 {
	color: #ffffff !important;
	font-size: 1.05rem;
	font-weight: 700;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	padding-bottom: 8px;
	margin: 0 0 14px;
}

#site-footer p,
#site-footer li,
#site-footer span,
#site-footer a {
	color: #dce0e7 !important;
}

#site-footer .graceful-widget li {
	border-color: rgba(255, 255, 255, 0.1) !important;
}

#site-footer a:hover {
	color: #ff7a3d !important;
	text-decoration: underline;
}

#site-footer .footer-bottom-wrap {
	background-color: #0e1013;
	padding: 18px 0;
	text-align: center;
	color: #cfd5df;
	font-size: 0.92rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#site-footer .footer-copyright {
	float: none !important;
	text-align: center;
	width: 100%;
	color: #cfd5df !important;
}

@media screen and (max-width: 640px) {
	.gs-home .gs-lead {
		padding: 18px;
	}

	.gs-home .gs-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.wp-child-theme-ga-strategy-graceful-child * {
		transition: none !important;
		animation: none !important;
	}
}
