/* ==========================================================================
   Greg Dayton — Astra child theme
   ========================================================================== */

:root {
	--gd-black: #000;
	--gd-ink: #050505;
	--gd-yellow: #ffde59;
	--gd-navy: #324a6d;
	--gd-white: #fff;
	--gd-grey: #9aa3ad;
	--gd-ff: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--gd-fb: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--gd-gutter: clamp(16px, 4vw, 48px);
}

body.gd {
	font-family: var(--gd-fb);
	background: #10161f;
	color: #c8cdd4;
}

/* --------------------------------------------------------------------------
   Header: logo bar + sticky nav bar
   -------------------------------------------------------------------------- */
.gd-header {
	background: var(--gd-black);
	text-align: center;
	padding: 18px var(--gd-gutter) 8px;
}

.gd-logo { display: inline-block; line-height: 0; }

.gd-logo img {
	display: block;
	width: min(614px, 82vw);
	height: auto;
}

.gd-navbar {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--gd-ink);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.admin-bar .gd-navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .gd-navbar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .gd-navbar { top: 0; } }

.gd-navbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 var(--gd-gutter);
	min-height: 60px;
}

.gd-navbar__logo { display: none; line-height: 0; }
.gd-navbar__logo img { height: 26px; width: auto; display: block; }

/* Explicit resets: some page designs style bare `nav`, `footer`, `a`. */
.gd-navbar .gd-nav {
	position: static;
	inset: auto;
	z-index: auto;
	display: block;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	backdrop-filter: none;
}

.gd-menu,
.gd-sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gd-menu { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }

.gd-menu__item { position: relative; display: flex; align-items: center; }

body.gd .gd-menu__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 18px 12px;
	margin: 0;
	border: 0;
	background: none;
	color: var(--gd-white);
	font-family: var(--gd-ff);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color .2s ease;
}

body.gd .gd-menu__link:hover,
body.gd .gd-menu__link:focus-visible,
body.gd .gd-menu__item.is-current > .gd-menu__link,
body.gd .gd-menu__item:hover > .gd-menu__link { color: var(--gd-yellow); }

body.gd .gd-menu__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gd-yellow); }

.gd-caret {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.gd-menu__sub-toggle {
	border: 0;
	background: none;
	color: var(--gd-white);
	padding: 18px 8px 18px 0;
	margin: 0 0 0 -8px;
	cursor: pointer;
}

.gd-sub {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	padding: 8px 0;
	background: var(--gd-black);
	border-top: 2px solid var(--gd-yellow);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 10;
}

.gd-menu__item:hover > .gd-sub,
.gd-menu__item:focus-within > .gd-sub,
.gd-menu__item.is-open > .gd-sub {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.gd-menu__item:last-child > .gd-sub { left: auto; right: 0; }

body.gd .gd-sub a {
	display: block;
	padding: 10px 20px;
	color: var(--gd-white);
	font-family: var(--gd-ff);
	font-size: 14px;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
}

body.gd .gd-sub a:hover,
body.gd .gd-sub a:focus-visible,
body.gd .gd-sub a[aria-current="page"] { color: var(--gd-yellow); background: rgba(255, 255, 255, .04); }

body.gd .gd-navbar a:focus-visible,
body.gd .gd-navbar button:focus-visible { outline: 2px solid var(--gd-yellow); outline-offset: 2px; }

/* Hamburger */
.gd-nav-toggle {
	display: none;
	position: relative;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--gd-white);
	cursor: pointer;
}

.gd-nav-toggle__bars,
.gd-nav-toggle__bars::before,
.gd-nav-toggle__bars::after {
	position: absolute;
	left: 12px;
	width: 22px;
	height: 2px;
	background: currentColor;
	transition: transform .25s ease, top .25s ease, background-color .2s;
	content: '';
}

.gd-nav-toggle__bars { top: 22px; }
.gd-nav-toggle__bars::before { left: 0; top: -7px; }
.gd-nav-toggle__bars::after { left: 0; top: 7px; }
.gd-nav-toggle[aria-expanded="true"] .gd-nav-toggle__bars { background: transparent; }
.gd-nav-toggle[aria-expanded="true"] .gd-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.gd-nav-toggle[aria-expanded="true"] .gd-nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1180px) {
	body.gd .gd-menu__link { padding: 16px 8px; font-size: 14px; }
}

@media (max-width: 1024px) {
	.gd-header { display: none; }
	.gd-navbar__logo img { height: 30px; }
	.gd-navbar__inner { justify-content: space-between; flex-wrap: wrap; min-height: 56px; }
	.gd-navbar__logo { display: block; }
	.gd-nav-toggle { display: block; }
	.gd-navbar .gd-nav { display: none; flex: 1 0 100%; padding: 4px 0 16px; }
	.gd-navbar.is-open .gd-nav { display: block; }
	.gd-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.gd-menu__item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	body.gd .gd-menu__link { flex: 1; padding: 14px 4px; font-size: 15px; }
	body.gd .gd-menu__toggle { justify-content: space-between; padding-right: 14px; }
	body.gd .gd-menu__link[aria-current="page"] { box-shadow: none; color: var(--gd-yellow); }
	.gd-menu__sub-toggle { margin: 0; padding: 14px 12px; }
	.gd-sub {
		position: static;
		flex: 1 0 100%;
		display: none;
		min-width: 0;
		padding: 0 0 8px 14px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.gd-menu__item:hover > .gd-sub,
	.gd-menu__item:focus-within > .gd-sub { display: none; }
	.gd-menu__item.is-open > .gd-sub { display: block; }
	.gd-menu__item.is-open .gd-caret { transform: rotate(-135deg) translateY(-2px); }
}

/* --------------------------------------------------------------------------
   Page canvas — coded page HTML runs full width
   -------------------------------------------------------------------------- */
body.gd-canvas .site-content > .ast-container {
	display: block;
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

body.gd-canvas #content { padding: 0; margin: 0; }

.gd-page-article { margin: 0; padding: 0; }

.gd-page { position: relative; width: 100%; overflow-x: clip; }

.gd-page .gd-c { position: relative; box-sizing: border-box; }
.gd-page .gd-w { box-sizing: border-box; }
.gd-page .gd-row > .gd-c,
.gd-page .gd-row > .gd-w { flex-shrink: 0; }
.gd-page .gd-text p:last-child { margin-bottom: 0; }
.gd-page .gd-text a { color: var(--gd-yellow); }
.gd-page img { max-width: 100%; height: auto; }
.gd-page h1, .gd-page h2, .gd-page h3, .gd-page h4, .gd-page h5, .gd-page h6 { margin: 0; }

.gd-page .gd-btn { transition: filter .2s ease, transform .2s ease; }
.gd-page .gd-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* 16:9 embeds */
.gd-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.gd-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Galleries */
.gd-gallery {
	display: grid;
	grid-template-columns: repeat(var(--gd-cols, 4), minmax(0, 1fr));
	gap: 10px;
}

.gd-gallery a { display: block; overflow: hidden; line-height: 0; }

.gd-gallery img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform .4s ease;
}

.gd-gallery a:hover img { transform: scale(1.04); }

/* Social icon rows inside pages */
.gd-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-social { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.gd-iconlist { list-style: none; padding: 0; }
.gd-iconlist li { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }

/* Responsive: rows stack, fixed backgrounds scroll */
@media (max-width: 1024px) {
	.gd-page .gd-bg-fixed { background-attachment: scroll !important; }
	.gd-gallery { grid-template-columns: repeat(min(var(--gd-cols, 4), 3), minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.gd-page .gd-row,
	.gd-page .gd-row > .gd-inner { flex-direction: column !important; flex-wrap: nowrap !important; }
	.gd-page .gd-row > .gd-c,
	.gd-page .gd-row > .gd-w,
	.gd-page .gd-row > .gd-inner > .gd-c,
	.gd-page .gd-row > .gd-inner > .gd-w { width: 100% !important; max-width: 100% !important; }
	.gd-page .gd-c { padding-left: min(var(--gd-gutter), 20px) !important; padding-right: min(var(--gd-gutter), 20px) !important; }
	.gd-page .gd-c .gd-c { padding-left: 0 !important; padding-right: 0 !important; }
	.gd-page .gd-c { min-height: 0 !important; }
	.gd-page .gd-text { text-align: left !important; }
	.gd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.gd-page .gd-image img { width: auto !important; }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.gd-form { max-width: 720px; }
.gd-form__field { margin: 0 0 14px; }
.gd-form__label { display: block; margin: 0 0 6px; font-family: var(--gd-fb); font-size: 15px; color: inherit; }

.gd-form input,
.gd-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid #69727d;
	border-radius: 3px;
	background: #fff;
	color: #1a1a1a;
	font-family: var(--gd-fb);
	font-size: 15px;
	line-height: 1.4;
}

.gd-form input:focus,
.gd-form textarea:focus { outline: 2px solid var(--gd-yellow); outline-offset: 1px; border-color: var(--gd-yellow); }

.gd-form__submit { margin: 4px 0 0; }

.gd-form button,
.gd-btn-yellow {
	display: inline-block;
	width: 100%;
	padding: 12px 24px;
	border: 0;
	border-radius: 3px;
	background: var(--gd-yellow);
	color: #000;
	font-family: var(--gd-fb);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter .2s ease;
}

.gd-form button:hover,
.gd-btn-yellow:hover { filter: brightness(1.08); color: #000; }

.gd-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.gd-form__msg { padding: 12px 16px; border-radius: 3px; margin: 0 0 14px; font-family: var(--gd-fb); }
.gd-form__msg--ok { background: #e7f7ec; color: #14532d; }
.gd-form__msg--err { background: #fdecec; color: #7f1d1d; }

/* --------------------------------------------------------------------------
   Posts grid + single post
   -------------------------------------------------------------------------- */
.gd-cards {
	display: grid;
	grid-template-columns: repeat(var(--gd-cols, 3), minmax(0, 1fr));
	gap: 28px;
}

.gd-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

.gd-card__image { display: block; aspect-ratio: 16 / 10; background: #111; overflow: hidden; }
.gd-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gd-card:hover .gd-card__image img { transform: scale(1.04); }
.gd-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.gd-card__title { margin: 0 0 6px; font-family: var(--gd-ff); font-size: 19px; font-weight: 600; line-height: 1.3; }
.gd-card__title a { color: #111; text-decoration: none; }
.gd-card__title a:hover { color: var(--gd-navy); }
.gd-card__date { margin: 0 0 10px; font-size: 13px; color: #6b7280; }
.gd-card__excerpt { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: #374151; }
.gd-card__more { margin-top: auto; font-family: var(--gd-ff); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--gd-navy); text-decoration: none; }
.gd-card__more:hover { color: #000; }

@media (max-width: 1024px) { .gd-cards { grid-template-columns: repeat(min(var(--gd-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 640px) { .gd-cards { grid-template-columns: 1fr; } }

body.single-post.gd { background: #10161f; }

.gd-single { padding: 40px var(--gd-gutter) 80px; }

.gd-single__card {
	max-width: 900px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 56px);
	background: #fff;
	border-radius: 4px;
}

.gd-single__title {
	margin: 0 0 8px;
	font-family: var(--gd-ff);
	color: #efe7d6;
	font-size: clamp(30px, 5vw, 56px);
	font-weight: 600;
	line-height: 1.12;
	color: #000;
	text-align: center;
}

.gd-single__meta { margin: 0 0 28px; text-align: center; font-size: 14px; color: #9aa3ad; }
.gd-single__image { margin: 0 0 32px; }
.gd-single__image img { display: block; width: 100%; height: auto; }

.gd-single__content {
	font-family: var(--gd-ff);
	font-size: 17px;
	color: #c8cdd4;
	font-weight: 300;
	line-height: 1.75;
	color: var(--gd-navy);
}

.gd-single__content p { margin: 0 0 1.2em; }
.gd-single__content h2,
.gd-single__content h3 { font-family: var(--gd-ff); font-weight: 600; color: #c9a15c; line-height: 1.25; margin: 1.6em 0 .6em; }
.gd-single__content h2 { font-size: clamp(24px, 3vw, 32px); }
.gd-single__content h3 { font-size: clamp(20px, 2.4vw, 24px); }
.gd-single__content a { color: var(--gd-yellow); text-decoration: underline; text-underline-offset: 3px; }
.gd-single__content strong { font-weight: 600; }
.gd-single__content img { max-width: 100%; height: auto; }

.gd-single__nav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin: 40px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-family: var(--gd-ff);
}

.gd-single__nav a { display: block; color: #efe7d6; text-decoration: none; font-weight: 500; max-width: 340px; }
.gd-single__nav div:last-child { text-align: right; margin-left: auto; }
.gd-single__nav span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #9aa3ad; margin-bottom: 4px; }
.gd-single__nav a:hover { color: var(--gd-yellow); }

.gd-share { margin-top: 32px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gd-share__label { margin: 0; font-family: var(--gd-ff); font-weight: 600; color: #efe7d6; }
.gd-share__list { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.gd-share__list a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #efe7d6; font-size: 17px; }
.gd-share__list a:hover { background: var(--gd-yellow); color: #000; }

.gd-related { max-width: 1200px; margin: 64px auto 0; }
.gd-related__title { margin: 0 0 28px; text-align: center; font-family: var(--gd-ff); font-size: clamp(28px, 4vw, 48px); font-weight: 600; color: #fff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer.gd-footer {
	position: static;
	display: block;
	background: var(--gd-black);
	color: rgba(255, 255, 255, .8);
	padding: 44px var(--gd-gutter) 30px;
	text-align: center;
	font-family: var(--gd-fb);
}

.gd-footer__social {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
	margin: 0 0 26px;
	padding: 0;
}

body.gd .gd-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	color: var(--gd-yellow);
	font-size: 34px;
	transition: transform .2s ease, color .2s ease;
}

body.gd .gd-footer__social a:hover { color: #fff; transform: translateY(-2px); }

.gd-footer__cta { margin: 0 0 22px; }
.gd-footer .gd-btn-yellow { width: auto; min-width: 140px; }

.gd-footer__copy { margin: 0; font-size: 14px; }
body.gd .gd-footer__copy a { color: var(--gd-yellow); text-decoration: none; }
body.gd .gd-footer__copy a:hover { text-decoration: underline; }

@media (max-width: 600px) {
	body.gd .gd-footer__social a { width: 44px; height: 44px; font-size: 26px; }
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.gd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .92);
}

.gd-lightbox[hidden] { display: none; }
.gd-lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }

.gd-lightbox button {
	position: absolute;
	border: 0;
	background: none;
	color: #fff;
	font-size: 46px;
	line-height: 1;
	padding: 10px 16px;
	cursor: pointer;
	opacity: .8;
}

.gd-lightbox button:hover { opacity: 1; color: var(--gd-yellow); }
.gd-lightbox__close { top: 10px; right: 14px; }
.gd-lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.gd-lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   Ticker / marquee band
   -------------------------------------------------------------------------- */
.marquee {
	background: #c9a15c;
	color: #10161f;
	overflow: hidden;
	white-space: nowrap;
	border-bottom: 1px solid rgba(16, 22, 31, 0.15);
	position: relative;
	z-index: 10;
}

.marquee-track {
	display: inline-flex;
	align-items: center;
	animation: marqueeScroll 26s linear infinite;
	padding: 10px 0;
}

.marquee-track span {
	font-family: "IBM Plex Mono", monospace;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0 24px;
	display: inline-flex;
	align-items: center;
	gap: 24px;
}

.marquee-track span::after {
	content: "✦";
	opacity: 0.6;
}

@keyframes marqueeScroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.gd-navbar *, .gd-page *, .gd-footer * { transition: none !important; }
	.marquee-track { animation: none; }
}

/* --------------------------------------------------------------------------
   Astra default pages (404, search, archives) — dark theme override
   -------------------------------------------------------------------------- */
body.gd .site-content,
body.gd #content,
body.gd .ast-container,
body.gd .entry-content,
body.gd .page-content,
body.gd .error-404,
body.gd .search-results,
body.gd .archive {
	background: transparent;
	color: #c8cdd4;
}

/* 404 page */
body.gd .error-404 .page-title,
body.gd .search-results .page-title,
body.gd .archive .page-title,
body.gd h1.page-title,
body.gd h1.entry-title {
	color: #efe7d6;
	font-family: 'Fraunces', serif;
}

body.gd .ast-404-layout-1 .ast-404 { background: transparent; }
body.gd .ast-404-layout-1 .ast-404-text { color: #c9a15c; }

/* Search form on 404 */
body.gd .search-field {
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.15);
	color: #efe7d6;
	border-radius: 4px;
	padding: 10px 14px;
}
body.gd .search-submit {
	background: #c9a15c;
	color: #10161f;
	border: none;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 4px;
	font-weight: 600;
}
body.gd .search-submit:hover { background: var(--gd-yellow); }

/* Astra default links in content */
body.gd .entry-content a,
body.gd .page-content a { color: var(--gd-yellow); }

/* Archive / blog index post cards */
body.gd article.post {
	border-bottom: 1px solid rgba(255,255,255,.08);
	padding: 32px 0;
}
body.gd article.post .entry-title a { color: #efe7d6; text-decoration: none; }
body.gd article.post .entry-title a:hover { color: var(--gd-yellow); }
body.gd article.post .entry-meta,
body.gd article.post .entry-footer { color: #9aa3ad; font-size: 13px; }
body.gd article.post .entry-meta a,
body.gd article.post .entry-footer a { color: #9aa3ad; }
body.gd article.post .entry-meta a:hover,
body.gd article.post .entry-footer a:hover { color: var(--gd-yellow); }
body.gd article.post .read-more-container a,
body.gd article.post .more-link { color: var(--gd-yellow); font-weight: 600; }

/* Pagination */
body.gd .pagination .page-numbers {
	color: #c8cdd4;
	border: 1px solid rgba(255,255,255,.15);
	padding: 6px 12px;
	border-radius: 4px;
}
body.gd .pagination .page-numbers.current,
body.gd .pagination .page-numbers:hover { background: #c9a15c; color: #10161f; border-color: #c9a15c; }
