/*
Theme Name:   GDN Child
Theme URI:    https://example.com/
Description:  Global Discovery Network child theme for Hello Elementor. Provides the header, footer, 404 and full-width page template. Platform functionality lives in the Global Discovery Core plugin. Powered by Lamar.
Author:       Lamar
Template:     hello-elementor
Version:      1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License:      GPL-2.0-or-later
Text Domain:  gdn-child
*/

/* ---------- base ---------- */
body.gdc-site { margin: 0; background: var(--gdc-bg, #fff); color: var(--gdc-text, #17132b); font-family: var(--gdc-font, system-ui, sans-serif); line-height: 1.6; }
.gdn-skip { position: absolute; left: -9999px; top: 8px; z-index: 10000; padding: 10px 16px; border-radius: 10px; background: #fff; color: #17132b; font-weight: 600; }
.gdn-skip:focus { left: 8px; }
.gdn-main { min-height: 50vh; }
.gdn-page { padding-block: clamp(40px, 6vw, 80px); }
.gdn-page__title { font-family: var(--gdc-font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.03em; margin: 0 0 24px; }
.gdn-page .gdc-prose, .gdn-page__content { max-width: 78ch; }
.gdn-page__content h2 { font-family: var(--gdc-font-display); margin-top: 2em; letter-spacing: -0.01em; }
.gdn-page__content a { color: var(--gdc-accent); }

/* ---------- header ---------- */
.gdn-header { position: sticky; top: 0; z-index: 1000; background: var(--gdc-surface-glass, rgba(255,255,255,.8)); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--gdc-border, #eee); }
.admin-bar .gdn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gdn-header { top: 0; } }
.gdn-header__bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.gdn-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gdc-text) !important; font-family: var(--gdc-font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; flex: none; }
.gdn-brand img { max-height: 40px; width: auto; }
.gdn-brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--gdc-gradient); color: #fff; box-shadow: 0 6px 16px -6px rgba(106,69,245,.7); }
.gdn-nav { flex: 1; }
.gdn-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; justify-content: center; }
.gdn-nav a { display: inline-flex; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--gdc-text-muted) !important; font-weight: 600; font-size: .95rem; transition: background-color .2s, color .2s; }
.gdn-nav a:hover, .gdn-nav .current-menu-item > a, .gdn-nav .current_page_item > a { color: var(--gdc-text) !important; background: var(--gdc-bg-tint); }
.gdn-header .gdc-header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.gdn-burger { display: none; }

@media (max-width: 1080px) {
	.gdn-burger { display: inline-grid; margin-left: auto; }
	.gdn-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--gdc-bg); } /* a filter would make the fixed menu relative to the header */
	.gdn-nav { position: fixed; inset: 72px 0 0 0; background: var(--gdc-bg); padding: 24px var(--gdc-gutter); opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--gdc-ease), transform .25s var(--gdc-ease), visibility .25s; overflow-y: auto; visibility: hidden; pointer-events: none; }
	.admin-bar .gdn-nav { top: 104px; }
	.gdn-nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
	.gdn-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.gdn-nav a { display: flex; padding: 14px 16px; font-size: 1.1rem; border-radius: 14px; }
	.gdn-header__bar > .gdc-header-actions { order: 3; margin-left: auto; }
	.gdn-burger { order: 4; margin-left: 0; }
	.gdn-header__bar > .gdc-header-actions .gdc-btn--ghost, .gdn-header__bar > .gdc-header-actions .gdc-btn--text { display: none; }
	.gdn-nav__actions { display: flex !important; flex-direction: column; gap: 10px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--gdc-border); }
	.gdn-nav__actions .gdc-header-actions { flex-direction: column; align-items: stretch; }
	.gdn-nav__actions .gdc-btn { width: 100%; }
	.gdn-nav__actions .gdc-theme-toggle { display: none; }
	html.gdc-nav-open { overflow: hidden; }
}
@media (max-width: 520px) { .gdn-header__bar > .gdc-header-actions .gdc-btn--primary { display: none; } }
.gdn-nav__actions { display: none; }
.gdc-theme-toggle__moon { display: none; }
[data-gdc-theme="dark"] .gdc-theme-toggle__sun { display: none; }
[data-gdc-theme="dark"] .gdc-theme-toggle__moon { display: inline; }

/* ---------- footer ---------- */
.gdn-footer { margin-top: var(--gdc-section-y, 80px); background: var(--gdc-bg-subtle); border-top: 1px solid var(--gdc-border); padding: clamp(48px, 6vw, 72px) 0 24px; font-size: .95rem; }
.gdn-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .gdn-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.gdn-footer__about p { color: var(--gdc-text-muted); max-width: 36ch; margin: 12px 0 16px; }
.gdn-footer h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gdc-text-faint); margin: 0 0 14px; font-family: var(--gdc-font); }
.gdn-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gdn-footer a { color: var(--gdc-text-muted) !important; text-decoration: none; }
.gdn-footer a:hover { color: var(--gdc-accent) !important; }
.gdn-social { display: flex; gap: 8px; flex-wrap: wrap; }
.gdn-social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gdc-border); background: var(--gdc-surface); }
.gdn-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--gdc-border); color: var(--gdc-text-faint); font-size: .875rem; }
.gdn-powered strong { background: var(--gdc-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }

/* ---------- 404 ---------- */
.gdn-404 { text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.gdn-404__code { font: 800 clamp(5rem, 3rem + 10vw, 10rem)/1 var(--gdc-font-display); letter-spacing: -0.05em; background: var(--gdc-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.gdn-404 h1 { font-family: var(--gdc-font-display); margin: 8px 0; }
.gdn-404 p { color: var(--gdc-text-muted); margin: 0 auto 28px; max-width: 48ch; }
.gdn-404 .gdc-search { margin: 0 auto 24px; max-width: 760px; text-align: left; }
