/* EduConsult theme — presentation layer */
:root {
	--edc-primary: #0B2C4A;
	--edc-primary-dark: #071c30;
	--edc-accent: #C9A227;
	--edc-accent-dark: #a7861c;
	--edc-secondary: #1A6B5C;
	--edc-text: #1C2430;
	--edc-muted: #5b6573;
	--edc-bg: #F4F7FA;
	--edc-white: #ffffff;
	--edc-line: #e2e8ef;
	--edc-radius: 14px;
	--edc-shadow: 0 12px 40px rgba(11, 44, 74, 0.08);
	--edc-header-h: 80px;
	--edc-font: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
	--edc-serif: "Source Serif 4", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--edc-font);
	color: var(--edc-text);
	background: var(--edc-bg);
	line-height: 1.65;
	font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--edc-secondary); text-decoration: none; }
a:hover { color: var(--edc-primary); }
h1, h2, h3, h4 {
	font-family: var(--edc-serif);
	line-height: 1.2;
	color: var(--edc-primary);
	font-weight: 600;
}
.container { width: min(1140px, calc(100% - 32px)); margin-inline: auto; }
.content-narrow { width: min(820px, calc(100% - 32px)); margin-inline: auto; padding: 48px 0 80px; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.skip-link:focus { position: static; clip: auto; width: auto; height: auto; background: #fff; padding: 8px; }

/* Header */
.site-header {
	background: var(--edc-primary);
	color: #fff;
	z-index: 100;
}
.has-sticky-header .site-header { position: sticky; top: 0; }
.has-transparent-header .site-header {
	position: absolute; left: 0; right: 0; background: linear-gradient(180deg, rgba(7,28,48,.72), transparent);
}
.has-transparent-header.has-sticky-header .site-header.is-scrolled {
	position: sticky;
	background: var(--edc-primary);
}
.header-inner {
	width: min(1200px, calc(100% - 32px));
	margin: 0 auto;
	min-height: var(--edc-header-h);
	display: flex;
	align-items: center;
	gap: 20px;
}
.site-logo-text { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo-mark {
	width: 40px; height: 40px; border-radius: 10px;
	background: var(--edc-accent); color: var(--edc-primary);
	display: grid; place-items: center; font-weight: 700;
}
.logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.logo-words em { font-style: normal; font-size: 11px; opacity: .8; }
.custom-logo-link img { max-height: 48px; width: auto; }
.primary-navigation { margin-left: auto; }
.primary-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.primary-menu a { color: #fff; font-weight: 500; font-size: 14px; }
.primary-menu a:hover { color: var(--edc-accent); }
.primary-menu .sub-menu {
	position: absolute; background: #fff; color: var(--edc-text);
	min-width: 200px; padding: 10px 0; border-radius: 10px; box-shadow: var(--edc-shadow);
	list-style: none; display: none;
}
.primary-menu li { position: relative; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { color: var(--edc-text); display: block; padding: 8px 16px; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
	display: block; width: 22px; height: 2px; background: #fff; position: relative;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
	border: 2px solid transparent; cursor: pointer;
}
.btn-accent, .wp-block-button__link {
	background: var(--edc-accent); color: var(--edc-primary) !important; border-color: var(--edc-accent);
}
.btn-accent:hover { background: var(--edc-accent-dark); }
.btn-outline, .is-style-outline .wp-block-button__link {
	background: transparent; color: #fff !important; border-color: #fff;
}
.page-body .btn-outline, .page-body .is-style-outline .wp-block-button__link { color: var(--edc-primary) !important; border-color: var(--edc-primary); }

/* Heroes */
.page-hero {
	background: linear-gradient(135deg, var(--edc-primary), #143e66);
	color: #fff; padding: 72px 0 48px;
}
.page-hero h1, .page-hero p, .page-hero a, .page-hero .meta { color: #fff; }
.edc-hero, .edc-hero-fallback {
	background: linear-gradient(135deg, #071c30 0%, #0B2C4A 50%, #1A6B5C 140%);
	color: #fff; padding: 120px 24px 80px; border-radius: 0 0 28px 28px;
}
.edc-hero h1, .edc-hero-fallback h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); max-width: 16ch; }
.edc-hero p, .edc-hero-fallback p { color: rgba(255,255,255,.88); max-width: 52ch; font-size: 18px; }
.edc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.edc-stats h3 { margin: 0; font-size: 32px; color: var(--edc-accent); }
.home-content { padding: 0 0 80px; }
.home-content .wp-block-group { margin: 0; }
.home-page .edc-hero { margin-inline: calc(50% - 50vw); width: 100vw; }

/* Cards / lists */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.post-card { background: #fff; border-radius: var(--edc-radius); overflow: hidden; box-shadow: var(--edc-shadow); }
.post-card-body { padding: 20px; }
.layout-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 40px; padding: 48px 0 80px; }
.sidebar .widget { background: #fff; padding: 20px; border-radius: var(--edc-radius); margin-bottom: 20px; }
.page-body { background: transparent; }
.page-body article { background: #fff; padding: 36px; border-radius: var(--edc-radius); box-shadow: var(--edc-shadow); }

/* Footer */
.site-footer { background: var(--edc-primary-dark); color: rgba(255,255,255,.82); padding: 56px 0 0; }
.footer-grid {
	width: min(1140px, calc(100% - 32px)); margin: 0 auto;
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.footer-legal {
	margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12);
	padding: 16px 0; display: flex; justify-content: space-between; align-items: center;
	width: min(1140px, calc(100% - 32px)); margin-inline: auto;
}
.legal-menu, .social-list { display: flex; gap: 16px; list-style: none; padding: 0; }
.text-link { font-weight: 600; }

/* Plugin surface compatibility */
.edc-wrap, .edc-card, .edc-panel {
	background: #fff; border-radius: var(--edc-radius); box-shadow: var(--edc-shadow);
}
.edc-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.edc-badge-draft { background: #eee; }
.edc-badge-submitted, .edc-badge-pending { background: #fff3cd; color: #7a5b00; }
.edc-badge-approved, .edc-badge-completed, .edc-badge-confirmed { background: #d8f3e8; color: #0f5b3d; }
.edc-badge-rejected, .edc-badge-cancelled { background: #fde2e1; color: #8a1f1a; }

@media (max-width: 960px) {
	.layout-sidebar, .footer-grid, .edc-stats { grid-template-columns: 1fr 1fr; }
	.header-cta { display: none; }
}
@media (max-width: 768px) {
	.nav-toggle { display: block; margin-left: auto; }
	.primary-navigation {
		display: none; position: absolute; left: 0; right: 0; top: var(--edc-header-h);
		background: var(--edc-primary); padding: 16px;
	}
	.primary-navigation.is-open { display: block; }
	.primary-menu { flex-direction: column; }
	.footer-grid, .edc-stats, .layout-sidebar { grid-template-columns: 1fr; }
	.footer-legal { flex-direction: column; gap: 8px; text-align: center; }
	.page-body article { padding: 20px; }
}

.edc-form .edc-consent {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	font-weight: 500;
}
.edc-form .edc-consent input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	margin: 3px 0 0 !important;
	padding: 0 !important;
	flex-shrink: 0;
}

.edc-facts { display: grid; gap: 10px; margin: 28px 0; }
.edc-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--edc-line); }
.edc-facts dt { font-weight: 600; color: var(--edc-muted); }
.edc-catalogue-single img { border-radius: var(--edc-radius); margin-bottom: 20px; }
