/*
Theme Name: Sanco Systems
Theme URI: https://sancosystems.com/
Description: A modern, video-led theme for Sanco Systems — specialty composite products and systems. Homepage hero video, product cards and contact details are editable under Appearance → Customize.
Author: Sanco Inc.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sanco
*/

/* ==========================================================================
   Tokens (colours taken from the Sanco logo: navy triangle, royal-blue
   gradient, gold rim)
   ========================================================================== */
:root {
	--navy-950: #07122a;
	--navy-900: #0b1a3a;
	--navy-800: #11285a;
	--navy-700: #173a80;
	--blue-600: #1f55b5;
	--blue-500: #2d6ad6;
	--gold-500: #e3c02a;
	--gold-600: #c9a516;
	--gold-100: #fbf4d4;

	--ink: #18212f;
	--ink-soft: #3d4757;
	--muted: #667085;
	--line: #e2e6ee;
	--bg: #ffffff;
	--bg-soft: #f4f6fa;

	--font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 10px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 2px rgba(7, 18, 42, .06), 0 1px 3px rgba(7, 18, 42, .08);
	--shadow-md: 0 10px 30px -12px rgba(7, 18, 42, .28);
	--shadow-lg: 0 24px 60px -20px rgba(7, 18, 42, .45);
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }

a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--navy-900);
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: .005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }

p { margin: 0 0 1.1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 12px; left: 12px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	padding: 12px 18px;
	background: var(--gold-500);
	color: var(--navy-950);
	font-weight: 700;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--content { max-width: 920px; }

/* ==========================================================================
   Buttons & small elements
   ========================================================================== */
.btn,
.entry-content .button,
.entry-content .wp-block-button__link,
input[type="submit"],
button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .8em 1.5em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--navy-800);
	color: #fff;
	font-family: var(--font-body);
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover,
.entry-content .button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--lg { padding: 1em 1.9em; font-size: 1rem; }
.btn--gold { background: var(--gold-500); color: var(--navy-950); }
.btn--gold:hover { background: #f0d24a; color: var(--navy-950); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--navy-900); }
.btn--navy { background: var(--navy-800); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	margin: 0 0 .9em;
	color: var(--blue-600);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--gold { color: var(--gold-500); }

.lead { font-size: 1.2rem; color: var(--ink-soft); }

.text-link { font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.text-link:hover { text-decoration: underline; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
	background: var(--navy-950);
	color: rgba(255, 255, 255, .78);
	font-size: .85rem;
	letter-spacing: .02em;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { color: var(--gold-500); }
.topbar svg { color: var(--gold-500); }
.topbar__contact { display: inline-flex; align-items: center; gap: 12px; }
.topbar__sep { opacity: .35; }
@media (max-width: 780px) {
	.topbar__tagline, .topbar__sep, .topbar__contact > span:last-child { display: none; }
	.topbar__inner { justify-content: center; }
}

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@supports (backdrop-filter: blur(8px)) {
	.site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(7, 18, 42, .35); }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand .custom-logo-link { display: block; line-height: 0; }
.brand .custom-logo { width: auto; max-height: 58px; }
.site-title { margin: 0; font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.site-title a { color: var(--navy-900); text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav__cta { flex-shrink: 0; }
.site-nav .menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav li { position: relative; }
.site-nav .menu > li > a {
	display: block;
	padding: 10px 12px;
	color: var(--navy-900);
	font-size: .98rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 6px;
}
.site-nav .menu > li > a::after {
	content: "";
	display: block;
	height: 2px;
	margin-top: 4px;
	background: var(--gold-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--ease);
}
.site-nav .menu > li:hover > a::after,
.site-nav .menu > li:focus-within > a::after,
.site-nav .menu > .current-menu-item > a::after,
.site-nav .menu > .current-menu-ancestor > a::after,
.site-nav .menu > .current_page_item > a::after { transform: scaleX(1); }

.site-nav .menu > .menu-item-has-children > a,
.site-nav .menu > .page_item_has_children > a { padding-right: 28px; }
.site-nav .menu > .menu-item-has-children > a::before,
.site-nav .menu > .page_item_has_children > a::before {
	content: "";
	position: absolute;
	top: 20px; right: 10px;
	width: 6px; height: 6px;
	border-right: 2px solid var(--blue-600);
	border-bottom: 2px solid var(--blue-600);
	transform: rotate(45deg);
}

/* Dropdowns */
.site-nav .sub-menu,
.site-nav .children {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 250px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 3px solid var(--gold-500);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.site-nav .sub-menu .sub-menu,
.site-nav .children .children { top: -13px; left: 100%; border-radius: var(--radius); }
/* Menus near the right edge open leftwards */
.site-nav .menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.site-nav .menu > li:nth-last-child(-n+3) .sub-menu .sub-menu { left: auto; right: 100%; }
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu,
.site-nav li:hover > .children,
.site-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a,
.site-nav .children a {
	display: block;
	padding: 9px 14px;
	color: var(--ink);
	font-size: .95rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 6px;
}
.site-nav .sub-menu a:hover,
.site-nav .children a:hover,
.site-nav .sub-menu .current-menu-item > a { background: var(--bg-soft); color: var(--blue-600); }
.site-nav .sub-menu .menu-item-has-children > a::after { content: "›"; float: right; margin-left: 10px; color: var(--muted); }
.site-nav .menu > li:nth-last-child(-n+3) .sub-menu .menu-item-has-children > a::after { content: "‹"; float: left; margin: 0 10px 0 0; }

.submenu-toggle { display: none; }
.nav-toggle { display: none; }

/* Mobile navigation */
@media (max-width: 1220px) {
	:root { --header-h: 72px; }
	.brand .custom-logo { max-height: 48px; }

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px; height: 48px;
		padding: 0;
		background: var(--navy-800);
		border: 0;
		border-radius: 10px;
		cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block;
		width: 22px; height: 2px;
		background: #fff;
		border-radius: 2px;
		transition: transform .25s var(--ease), background-color .2s;
	}
	.nav-toggle__bars { position: relative; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -7px; }
	.nav-toggle__bars::after { top: 7px; }
	.nav-open .nav-toggle__bars { background: transparent; }
	.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

	.site-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		height: calc(100vh - var(--header-h));
		height: calc(100dvh - var(--header-h));
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px var(--gutter) 96px;
		overflow-y: auto;
		background: #fff;
		border-top: 1px solid var(--line);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
	}
	.nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
	.nav-open { overflow: hidden; }

	.site-nav .menu { flex-direction: column; align-items: stretch; }
	.site-nav .menu li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
	.site-nav .menu li a { flex: 1; padding: 14px 4px; font-size: 1.05rem; white-space: normal; }
	.site-nav .menu > li > a::after, .site-nav .menu > li > a::before { display: none; }
	.site-nav .menu > .menu-item-has-children > a { padding-right: 4px; }

	.submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px; height: 44px;
		background: var(--bg-soft);
		border: 0;
		border-radius: 8px;
		cursor: pointer;
	}
	.submenu-toggle::before {
		content: "";
		width: 8px; height: 8px;
		border-right: 2px solid var(--navy-800);
		border-bottom: 2px solid var(--navy-800);
		transform: translateY(-2px) rotate(45deg);
		transition: transform .2s var(--ease);
	}
	.is-open > .submenu-toggle::before { transform: translateY(2px) rotate(-135deg); }

	.site-nav .sub-menu, .site-nav .children,
	.site-nav .sub-menu .sub-menu, .site-nav .children .children {
		position: static;
		display: none;
		flex-basis: 100%;
		min-width: 0;
		margin: 0 0 10px;
		padding: 0 0 0 14px;
		border: 0;
		border-left: 2px solid var(--gold-500);
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.site-nav li.is-open > .sub-menu, .site-nav li.is-open > .children { display: block; }
	.site-nav .sub-menu li { border-bottom: 0; }
	.site-nav .sub-menu a { padding: 10px 4px; }
	.site-nav .sub-menu .menu-item-has-children > a::after { display: none; }
	.site-nav__cta { margin-top: 20px; }
}

/* ==========================================================================
   Hero video
   ========================================================================== */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(560px, calc(100svh - var(--header-h) - 40px), 860px);
	overflow: hidden;
	background: var(--navy-950);
	color: #fff;
	isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 18, 42, .92) 0%, rgba(7, 18, 42, .72) 45%, rgba(11, 26, 58, .25) 100%),
		linear-gradient(0deg, rgba(7, 18, 42, .55) 0%, rgba(7, 18, 42, 0) 40%);
}
@media (max-width: 760px) {
	.hero__shade { background: linear-gradient(180deg, rgba(7, 18, 42, .7) 0%, rgba(7, 18, 42, .82) 60%, rgba(7, 18, 42, .92) 100%); }
}
.hero__content { position: relative; padding-block: 96px; }
.hero__content > * { max-width: 720px; }
.hero__title {
	margin-bottom: .35em;
	color: #fff;
	font-size: clamp(2.8rem, 7vw, 5.4rem);
	line-height: .98;
	text-transform: uppercase;
	letter-spacing: .01em;
}
.hero__text { max-width: 620px; margin-bottom: 2em; color: rgba(255, 255, 255, .88); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__content > * { animation: rise .9s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .1s; }
.hero__content > :nth-child(3) { animation-delay: .2s; }
.hero__content > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__content > * { animation: none; } }

.hero__pause {
	position: absolute;
	right: var(--gutter);
	bottom: 24px;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	background: rgba(7, 18, 42, .5);
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s;
}
.hero__pause:hover { background: rgba(7, 18, 42, .85); }
.hero__pause-icon { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.hero__pause.is-paused .hero__pause-icon {
	width: 0; height: 0;
	margin-left: 4px;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent currentColor;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--page { padding-block: clamp(48px, 7vw, 88px); }
.section__head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; }
.section__title { margin-bottom: 0; }

/* Product cards */
.products { background: var(--bg-soft); }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 24px 26px; border-top: 3px solid var(--gold-500); }
.card__title { margin-bottom: .4em; font-size: 1.55rem; }
.card__title a { color: var(--navy-900); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { flex: 1; color: var(--ink-soft); font-size: 1rem; }
.card__link { margin-top: .4em; color: var(--blue-600); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card__link .arrow { display: inline-block; transition: transform .25s var(--ease); }
.card:hover .card__link .arrow { transform: translateX(4px); }

/* About block */
.about-block__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.about-block__logo {
	position: relative;
	display: grid;
	place-items: center;
	padding: clamp(32px, 5vw, 64px);
	background: radial-gradient(circle at 50% 40%, #fff 0%, var(--bg-soft) 70%);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.about-block__logo::before {
	content: "";
	position: absolute;
	inset: 14px;
	border: 1px dashed rgba(23, 58, 128, .18);
	border-radius: 10px;
	pointer-events: none;
}
.about-block__logo img { width: min(260px, 70%); }
@media (max-width: 860px) { .about-block__inner { grid-template-columns: 1fr; } }

/* Posts */
.news { background: var(--bg-soft); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 26px; }
.post-card__meta { margin-bottom: .5em; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.post-card__title { font-size: 1.45rem; }
.post-card__title a { color: var(--navy-900); text-decoration: none; }
.post-card__title a:hover { color: var(--blue-600); }
.post-card__excerpt { flex: 1; color: var(--ink-soft); font-size: 1rem; }

/* CTA band */
.cta-band {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--blue-600) 120%);
	color: #fff;
}
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: clamp(48px, 7vw, 80px); }
.cta-band__title { margin: 0; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.cta-band__title a { color: var(--gold-500); text-decoration: none; white-space: nowrap; }
.cta-band__title a:hover { text-decoration: underline; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-banner {
	position: relative;
	overflow: hidden;
	padding-block: clamp(48px, 7vw, 88px);
	background:
		linear-gradient(90deg, rgba(7, 18, 42, .96) 0%, rgba(11, 26, 58, .86) 55%, rgba(17, 40, 90, .7) 100%),
		url("assets/images/banner-warehouse.jpg") center / cover no-repeat;
	color: #fff;
}
.page-banner::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--gold-500), var(--gold-600) 40%, transparent);
}
.page-banner__crumb { margin-bottom: 12px; color: rgba(255, 255, 255, .65); font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.page-banner__crumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.page-banner__crumb a:hover { color: var(--gold-500); }
.page-banner__title { max-width: 900px; margin: 0; color: #fff; text-transform: uppercase; }
.page-banner__sub { margin: 12px 0 0; color: rgba(255, 255, 255, .8); }
.page-banner__sub a { color: var(--gold-500); }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; max-width: 1180px; }
.layout-sidebar:has(.sidebar) { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 960px) { .layout-sidebar:has(.sidebar) { grid-template-columns: 1fr; } }
.layout-sidebar > .entry { max-width: 860px; }

.sidebar .widget { margin-bottom: 32px; padding: 24px; background: var(--bg-soft); border-radius: var(--radius); }
.sidebar .widget-title { font-size: 1.25rem; }
.sidebar ul { margin: 0; padding-left: 1.1em; }

.entry-thumb { margin: 0 0 32px; overflow: hidden; border-radius: var(--radius-lg); }
.entry-thumb img { display: block; width: 100%; }

/* Content typography — applies to everything entered in the WordPress editor,
   including pages built with the Divi Builder plugin. */
.entry-content { font-size: 1.08rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; }
.entry-content h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.entry-content h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); color: var(--navy-800); }
.entry-content ul, .entry-content ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--gold-600); }
.entry-content strong { color: var(--navy-900); }
.entry-content blockquote { margin: 1.6em 0; padding: 18px 24px; background: var(--bg-soft); border-left: 4px solid var(--gold-500); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 0 0 1.6em; }
.entry-content .wp-block-image img { display: block; height: auto; }
.entry-content > figure.wp-block-image:first-child img,
.entry-content .et_pb_text_inner > figure.wp-block-image:first-child img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.entry-content iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 1.5em auto; border: 0; border-radius: var(--radius); }
.entry-content table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: .98rem; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--bg-soft); color: var(--navy-900); }
.entry-content hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.entry-content center { margin-block: 1em; }
.entry-content a[href$=".pdf"] { font-weight: 600; }
.entry-content a[href$=".pdf"]::before {
	content: "PDF";
	display: inline-block;
	margin-right: .55em;
	padding: 2px 6px;
	background: var(--navy-800);
	border-radius: 4px;
	color: #fff;
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .08em;
	vertical-align: 2px;
}

.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1em auto; display: block; } }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { color: var(--muted); font-size: .9rem; text-align: center; }

/* Divi Builder sections inside the content keep their own layout; make them
   breathe and pick up theme typography. */
.entry-content .et_pb_section { padding-top: 0; padding-bottom: 0; background-color: transparent; }
.entry-content .et_pb_row { width: 100%; max-width: 100%; padding-top: 0; }
.entry-content .et_pb_text_inner h1,
.entry-content .et_pb_text_inner h2,
.entry-content .et_pb_text_inner h3 { font-family: var(--font-display); }

/* Content helpers usable in the editor: .intro, .sanco-cards / .sanco-card, .sanco-callout */
.entry-content .intro { font-size: 1.18rem; color: var(--ink-soft); }
.entry-content .intro img.alignright { width: 46%; max-width: 420px; }
.sanco-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 1.8em 0 2.2em; clear: both; }
.sanco-card { padding: 24px 24px 8px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold-500); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.entry-content .sanco-card h3 { margin-top: 0; font-size: 1.45rem; }
.sanco-card p { font-size: 1rem; color: var(--ink-soft); }
.entry-content .sanco-card .sanco-card__tag { margin-bottom: .5em; color: var(--blue-600); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sanco-callout { margin: 2em 0; padding: 24px 28px; background: var(--gold-100); border-left: 5px solid var(--gold-500); border-radius: 0 var(--radius) var(--radius) 0; }
.sanco-callout p:last-child { margin-bottom: 0; }

.entry-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; background: var(--bg-soft); border-radius: 999px; color: var(--ink-soft); font-size: .85rem; text-decoration: none; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }
.post-nav a { text-decoration: none; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="password"], input[type="number"], textarea, select {
	width: 100%;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #c9d0dc;
	border-radius: 8px;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue-500); outline: 3px solid rgba(45, 106, 214, .2); outline-offset: 0; }
.search-form { display: flex; gap: 10px; max-width: 520px; margin-bottom: 24px; }
.search-form label { flex: 1; }
.search-form .search-submit { flex-shrink: 0; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy-900); font-weight: 600; text-decoration: none; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* Comments */
.comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.comment-list { padding-left: 0; list-style: none; }
.comment-body { margin-bottom: 24px; padding: 20px; background: var(--bg-soft); border-radius: var(--radius); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-block: 72px 56px; }
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__brand img { display: block; width: 64px; margin-bottom: 16px; padding: 6px; background: #fff; border-radius: 12px; }
.site-footer__name { margin: 0 0 4px; color: #fff; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.site-footer__tagline { margin: 0; }
.site-footer__heading { margin-bottom: 18px; color: var(--gold-500); font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.site-footer address { margin-bottom: 1em; font-style: normal; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu .sub-menu { display: none; }

.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; }
.site-footer__bottom p { margin: 0; }
