/* GREEN-MOBILITY theme styles */
:root {
	--gm-navy-900: var(--wp--preset--color--navy-900, #002b45);
	--gm-navy: var(--wp--preset--color--navy, #00426a);
	--gm-navy-50: var(--wp--preset--color--navy-50, #eaf2f7);
	--gm-green: var(--wp--preset--color--green, #4cc23a);
	--gm-green-700: var(--wp--preset--color--green-700, #1f7a35);
	--gm-green-50: var(--wp--preset--color--green-50, #edf8ea);
	--gm-ink: var(--wp--preset--color--ink, #14212b);
	--gm-muted: var(--wp--preset--color--muted, #526170);
	--gm-line: var(--wp--preset--color--line, #dce3e8);
	--gm-surface: var(--wp--preset--color--surface, #f6f8f9);
	--gm-r: 16px;
	--gm-shadow: 0 1px 2px rgba(0, 43, 69, 0.06), 0 8px 24px rgba(0, 43, 69, 0.06);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) :focus-visible { outline: 3px solid var(--gm-green); outline-offset: 2px; border-radius: 4px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
img { height: auto; }

/* ---------- header ---------- */
.gm-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .gm-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.gm-header { background: #fff; border-bottom: 1px solid var(--gm-line); }
.gm-header-inner { min-height: 76px; gap: 24px; }
.gm-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gm-navy-900); flex: none; }
.gm-brand img { width: 52px; height: auto; }
.gm-brand b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.02em; color: var(--gm-navy); line-height: 1.2; }
.gm-brand small { display: block; font-size: 0.74rem; color: var(--gm-muted); font-weight: 500; line-height: 1.3; }
.gm-brand:hover { color: var(--gm-navy-900); }

.gm-nav { gap: 4px; }
.gm-nav .wp-block-navigation-item__content { padding: 10px 14px !important; border-radius: 999px; text-decoration: none; color: var(--gm-ink); white-space: nowrap; }
.gm-nav .wp-block-navigation-item__content:hover { background: var(--gm-navy-50); color: var(--gm-navy); }
.gm-nav .current-menu-item > .wp-block-navigation-item__content,
.gm-nav .current-menu-ancestor > .wp-block-navigation-item__content { color: var(--gm-navy); background: var(--gm-green-50); box-shadow: inset 0 -2px 0 var(--gm-green); }
.gm-nav .wp-block-navigation-submenu__toggle { margin-left: -8px; }
.gm-nav .wp-block-navigation__submenu-container { border: 1px solid var(--gm-line) !important; border-radius: 14px; box-shadow: var(--gm-shadow); padding: 8px !important; min-width: 220px !important; }
.gm-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-radius: 10px; }

/* Use the overlay (burger) menu below 1180px, not only below 600px. */
.gm-nav .wp-block-navigation__responsive-container-open { width: 46px; height: 46px; border: 1px solid var(--gm-line); border-radius: 12px; justify-content: center; align-items: center; color: var(--gm-navy); }
@media (min-width: 600px) and (max-width: 1179px) {
	.gm-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.gm-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
.gm-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.gm-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px !important; }
.gm-nav .is-menu-open .wp-block-navigation__container { gap: 2px !important; width: 100%; }
.gm-nav .is-menu-open .wp-block-navigation-item { width: 100%; }
.gm-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.1rem; padding: 14px 12px !important; border-radius: 12px; width: 100%; }
.gm-nav .is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; padding: 0 0 0 14px !important; }

/* ---------- hero ---------- */
.gm-hero {
	position: relative; overflow: hidden;
	padding-top: clamp(48px, 7vw, 88px) !important; padding-bottom: clamp(56px, 7vw, 96px) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%234CC23A' stroke-width='1.5' stroke-dasharray='2 10' stroke-linecap='round' opacity='.55'%3E%3Cpath d='M-20 520 C 200 420, 320 520, 520 400 S 860 180, 1220 240'/%3E%3Cpath d='M-20 140 C 180 220, 380 80, 600 160 S 940 360, 1220 300'/%3E%3C/g%3E%3Cg stroke='%232A6B93' opacity='.25'%3E%3Cpath d='M0 300H1200M0 450H1200M300 0V600M700 0V600M1000 0V600'/%3E%3C/g%3E%3C/svg%3E");
	background-size: cover; background-position: center;
}
.gm-hero-in { gap: 48px; margin-block: 0; }
.gm-hero h1 { margin: 0.4em 0 0.4em; }
.gm-hero-lead { color: #c9d9e4; font-size: 1.15rem; max-width: 760px; }
.gm-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.gm-pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: rgba(255, 255, 255, 0.1); color: #e3eef5; border: 1px solid rgba(255, 255, 255, 0.18); }
.gm-pill.is-green { background: rgba(76, 194, 58, 0.16); color: #9be68e; border-color: rgba(76, 194, 58, 0.4); }
.gm-hero .wp-block-buttons { margin-top: 28px; }
.wp-block-button.is-style-gm-ghost .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.wp-block-button.is-style-gm-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.gm-hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.gm-hero-meta div { font-size: 0.85rem; color: #a9c1d1; }
.gm-hero-meta dt { color: #fff; font-size: 1.05rem; font-weight: 700; }
.gm-hero-meta dd { margin: 0; }
.gm-hero-logo { margin: 0 auto !important; max-width: 100%; }
.gm-hero-logo img { background: #fff; border-radius: 32px; padding: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); width: 100%; max-width: 380px; }

/* ---------- EU band ---------- */
.gm-eu-band { background: #fff; border-bottom: 1px solid var(--gm-line); padding-top: 28px !important; padding-bottom: 28px !important; }
.gm-eu-in { gap: 32px !important; flex-wrap: nowrap !important; }
.gm-eu-logos { display: flex; gap: 20px; align-items: center; flex: none; }
.gm-eu-logos .cof { height: 62px; width: auto; }
.gm-eu-logos .era { height: 42px; width: auto; }
.gm-disclaimer { font-size: 0.88rem; color: var(--gm-muted); line-height: 1.55; margin: 0; }
.gm-disclaimer strong { color: var(--gm-ink); }

/* ---------- sections ---------- */
.gm-section { padding-top: clamp(56px, 7vw, 80px) !important; padding-bottom: clamp(56px, 7vw, 80px) !important; }
.gm-section.is-alt { background: var(--gm-surface); }
.gm-sec-head { margin-bottom: 36px !important; gap: 16px; }
.gm-sec-head h2 { margin: 0; }
.gm-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gm-green-700); margin: 0 0 10px; }
.gm-more { margin: 0; font-weight: 650; }
.gm-more a { color: var(--gm-navy); }
.gm-lead { font-size: 1.15rem; color: var(--gm-muted); }
.gm-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--gm-green-50); color: var(--gm-green-700); font-weight: 600; font-size: 0.78rem; margin: 0; width: fit-content; }
.gm-chip a { color: inherit; text-decoration: none; }
.gm-chip.is-navy { background: var(--gm-navy-50); color: var(--gm-navy); }
.is-style-gm-card { background: #fff; border: 1px solid var(--gm-line); border-radius: var(--gm-r); padding: 28px; }

/* ---------- news ---------- */
.gm-news-grid { gap: 20px !important; }
.gm-news-card { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--gm-line); border-radius: var(--gm-r); overflow: hidden; background: #fff; transition: box-shadow 0.2s, transform 0.2s; }
.gm-news-card:hover { box-shadow: var(--gm-shadow); transform: translateY(-2px); }
.gm-news-media { margin: 0 !important; }
.gm-news-media img { border-radius: 0; }
.gm-news-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gm-news-body > * { margin: 0 !important; }
.gm-news-body .wp-block-post-title { font-size: 1.2rem; }
.gm-news-body .wp-block-post-title a { text-decoration: none; color: var(--gm-navy-900); }
.gm-news-body .wp-block-post-title a:hover { color: var(--gm-navy); text-decoration: underline; }
.gm-news-body .wp-block-post-excerpt { color: var(--gm-muted); font-size: 0.95rem; }
.gm-news-body .wp-block-post-excerpt__more-link { font-weight: 650; color: var(--gm-navy); }
.gm-news-card:not(:has(.gm-news-media))::before {
	content: ""; display: block; aspect-ratio: 16/7;
	background: var(--gm-navy) url("../images/green-mobility-logo-sm.webp") center / 84px no-repeat;
}

.gm-event { margin-top: 20px !important; gap: 20px !important; border-radius: var(--gm-r); padding: 24px; background: var(--gm-green-50); border: 1px solid #cbebc4; flex-wrap: nowrap !important; }
.gm-event-date { background: #fff; border-radius: 12px; padding: 10px 16px; text-align: center; min-width: 92px; border: 1px solid #cbebc4; margin: 0; line-height: 1.25; flex: none; }
.gm-event-date b { display: block; font-size: 1.5rem; color: var(--gm-navy-900); }
.gm-event-date span { display: block; font-size: 0.8rem; color: var(--gm-muted); font-weight: 600; text-transform: uppercase; }
.gm-event-body > * { margin: 0 0 4px !important; }
.gm-event-body h3 { margin-top: 8px !important; }
.gm-event-body p:last-child { color: var(--gm-muted); }

/* ---------- page header ---------- */
.gm-page-hero { background: var(--gm-navy-50); border-bottom: 1px solid var(--gm-line); padding-top: 48px !important; padding-bottom: 44px !important; }
.gm-page-hero > * { margin-block: 0 12px !important; }
.gm-page-hero > *:last-child { margin-bottom: 0 !important; }
.gm-page-hero .wp-block-post-excerpt__excerpt, .gm-page-hero p.gm-lead { font-size: 1.15rem; color: var(--gm-muted); margin-block: 0; }
.gm-page-hero .wp-block-post-excerpt__excerpt { max-width: 820px; }
.gm-page-hero > p.gm-lead { max-width: 820px; margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: auto !important; }
.gm-page-hero .wp-block-post-excerpt__more-text { display: none; }
.gm-article-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem) !important; }
.gm-meta { gap: 12px; font-size: 0.85rem; color: var(--gm-muted); }
.gm-meta .gm-chip { font-size: 0.78rem; }
.gm-page-content { padding-top: clamp(40px, 6vw, 72px); }
.gm-article-image { margin-bottom: 32px !important; overflow: hidden; }

/* ---------- content helpers (About page etc.) ---------- */
.gm-page-content h2 { margin-top: 2.2em; }
.gm-page-content h2:first-child { margin-top: 0; }
.gm-sticky { position: sticky; top: 108px; }
.gm-acts { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 16px; counter-reset: gm-a; margin-block: 24px !important; }
.gm-acts > .wp-block-group { background: #fff; border: 1px solid var(--gm-line); border-radius: var(--gm-r); padding: 22px; margin: 0 !important; }
.gm-acts h3 { font-size: 1.05rem; display: flex; gap: 12px; align-items: flex-start; margin: 0 0 8px; }
.gm-acts h3::before { counter-increment: gm-a; content: counter(gm-a); flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--gm-navy); color: #fff; display: grid; place-items: center; font-size: 0.85rem; }
.gm-acts p { font-size: 0.94rem; color: var(--gm-muted); margin: 0; }
.gm-checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.gm-checks li { position: relative; padding-left: 32px; }
.gm-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F7A35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.gm-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gm-tags li { padding: 8px 14px; border-radius: 999px; background: var(--gm-surface); border: 1px solid var(--gm-line); font-size: 0.9rem; font-weight: 500; }
.gm-callout { background: var(--gm-navy-900); color: #d5e3ec; border-radius: var(--gm-r); padding: 32px !important; margin-top: 24px !important; }
.gm-callout h3, .gm-callout h2 { color: #fff; margin-top: 0 !important; }

/* ---------- footer ---------- */
.gm-footer { color: #b7cad7; }
.gm-footer a { color: #dce8f0; text-decoration: none; }
.gm-footer a:hover { color: #9be68e; text-decoration: underline; }
.gm-ft { padding: 56px 0 32px; gap: 48px !important; margin-block: 0 !important; }
.gm-fbrand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.gm-fbrand img { width: 64px; background: #fff; border-radius: 14px; padding: 6px; }
.gm-fbrand b { color: #fff; font-size: 1.1rem; display: block; }
.gm-fbrand span { font-size: 0.85rem; }
.gm-ft-title { color: #fff !important; font-size: 0.82rem !important; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 16px !important; }
.gm-ft-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gm-ft-eu { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 28px 0; gap: 28px !important; flex-wrap: nowrap !important; margin-block: 0 !important; }
.gm-eub { background: #fff; border-radius: 10px; padding: 10px 14px; flex: none; }
.gm-eub img { height: 48px; width: auto; display: block; }
.gm-ft-eu .gm-disclaimer { color: #b7cad7; font-size: 0.82rem; }
.gm-ft-bot { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; font-size: 0.82rem; margin-block: 0 !important; }
.gm-ft-bot p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1179px) {
	.gm-hero-in { flex-direction: column-reverse; align-items: flex-start !important; }
	.gm-hero-in > .wp-block-column { flex-basis: auto !important; width: 100%; }
	.gm-hero-logo { margin: 0 !important; }
	.gm-hero-logo img { width: 180px !important; padding: 16px; border-radius: 24px; }
	.gm-eu-in { flex-wrap: wrap !important; }
	.gm-sticky { position: static; }
}
@media (max-width: 781px) {
	.gm-acts { grid-template-columns: 1fr; }
	.gm-ft-eu, .gm-event { flex-wrap: wrap !important; }
	.gm-eu-logos { flex-wrap: wrap; gap: 14px; flex: 1 1 100%; min-width: 0; }
	.gm-eu-logos .cof { height: 46px; }
	.gm-eu-logos .era { height: 30px; }
	.gm-hero-logo img { width: 132px !important; padding: 12px; border-radius: 20px; }
	.gm-brand small { display: none; }
	.gm-header-inner { min-height: 68px; }
	.gm-brand img { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Plugin blocks manage their own heading spacing. */
.gm-page-content .gm-block h2,
.gm-page-content .gm-block h3 { margin-top: 0; }
.gm-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.gm-nav .is-menu-open .wp-block-navigation__container,
.gm-nav .is-menu-open .wp-block-navigation__submenu-container { align-items: stretch !important; }
.gm-nav .is-menu-open .wp-block-navigation__submenu-container { width: 100% !important; box-sizing: border-box; }
.gm-nav .is-menu-open .wp-block-navigation-item { align-items: stretch !important; }

/* Follow buttons row (1.0.2) */
.gm-follow-row { margin-top: 28px !important; }
