:root {
	--navy: #002943;
	--navy-deep: #001a2c;
	--blue: #0c68e9;
	--blue-soft: #4589b5;
	--red: #e30613;
	--red-deep: #9d0a0e;
	--brand-green: #009639;
	--brand-green-deep: #007a2f;
	--ink: #1c252e;
	--muted: #5b6770;
	--line: #d9e1e8;
	--paper: #ffffff;
	--mist: #f4f7fa;
	--ticker: #f3efe6;
	--shell: min(1180px, calc(100% - 2rem));
	--font-display: "Oswald", "Arial Narrow", sans-serif;
	--font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
	--shadow: 0 12px 36px rgba(0, 41, 67, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--paper);
	line-height: 1.65;
	min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
	color: var(--blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover { color: var(--navy); }

.shell {
	width: var(--shell);
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--navy);
	color: #fff;
	padding: 0.55rem 1rem;
	z-index: 1000;
}

.skip-link:focus { left: 1rem; top: 1rem; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* Brand green header — classic ICGAB top bar */
.topbar {
	background: var(--brand-green);
	color: #fff;
	font-size: 0.86rem;
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	min-height: 3.85rem;
	padding: 0.4rem 0;
	flex-wrap: wrap;
}

.topbar-brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	color: #fff;
	text-decoration: none;
	line-height: 0;
}

.topbar-logo-img {
	height: 3.15rem;
	width: auto;
	max-height: 3.15rem;
	max-width: min(11rem, 42vw);
	object-fit: contain;
	object-position: left center;
	flex: 0 0 auto;
	padding: 0;
	background: transparent;
}

.topbar-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.65rem;
	flex: 0 1 auto;
	max-width: 17.5rem;
	min-width: 0;
}

.topbar-contact a {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.topbar-contact a:hover { color: #fff; opacity: 0.92; }

.topbar-ico {
	display: inline-grid;
	place-items: center;
	width: 1.15rem;
	opacity: 0.95;
}

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 0.65rem 0.85rem;
	margin-left: auto;
	flex-wrap: wrap;
}

.topbar-social {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-btn {
	display: inline-grid;
	place-items: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 50%;
	background: var(--red);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.78rem;
	line-height: 1;
}

.social-btn:hover {
	color: #fff;
	background: var(--red-deep);
}

.topbar-pay {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--red);
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.86rem;
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	white-space: nowrap;
}

.topbar-pay:hover {
	background: var(--red-deep);
	color: #fff !important;
}

.pay-card {
	width: 1.15rem;
	height: 0.85rem;
	border-radius: 0.2rem;
	background:
		linear-gradient(135deg, #ff5f00 0 45%, transparent 45%),
		linear-gradient(225deg, #eb001b 0 45%, transparent 45%),
		#fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.topbar-cart {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 2.15rem;
	height: 2.15rem;
	color: #fff;
	text-decoration: none;
}

.topbar-cart:hover { color: #fff; opacity: 0.9; }

.cart-bag {
	width: 1.25rem;
	height: 1.15rem;
	border: 2px solid #fff;
	border-radius: 0.2rem 0.2rem 0.35rem 0.35rem;
	position: relative;
}

.cart-bag::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -0.45rem;
	width: 0.7rem;
	height: 0.45rem;
	border: 2px solid #fff;
	border-bottom: 0;
	border-radius: 0.45rem 0.45rem 0 0;
	transform: translateX(-50%);
}

.cart-count {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 0.72rem;
	font-weight: 700;
	padding-top: 0.2rem;
}

/* Main header */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 40;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.4rem;
	padding: 0.45rem 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	color: inherit;
	max-width: 20rem;
	flex: 0 1 auto;
	min-width: 0;
}

.brand-mark,
.brand img,
.brand-logo-img {
	height: 2.35rem;
	width: auto;
	max-height: 38px;
	max-width: 2.75rem;
	object-fit: contain;
	flex: 0 0 auto;
}

.brand-crest {
	flex: 0 0 auto;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 30% 30%, #fff 0%, #f3efe6 40%, #fff 41%),
		conic-gradient(from 210deg, var(--navy), var(--red), var(--blue-soft), var(--navy));
	border: 2px solid var(--navy);
	box-shadow: inset 0 0 0 1px #fff;
}

.crest-mark {
	font-family: var(--font-display);
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--navy);
	letter-spacing: 0.04em;
	background: #fff;
	border-radius: 50%;
	width: 1.65rem;
	height: 1.65rem;
	display: grid;
	place-items: center;
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	min-width: 0;
}

.brand-name {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--navy);
	text-transform: uppercase;
}

.brand-tag {
	font-size: 0.68rem;
	color: var(--muted);
	font-weight: 500;
	max-width: 34ch;
}

.brand-est {
	font-size: 0.68rem;
	color: var(--red);
	font-weight: 600;
	margin-top: 0.15rem;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 0.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-list a {
	display: inline-block;
	padding: 0.55rem 0.65rem;
	color: var(--navy);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
	color: var(--blue);
}

.nav-toggle {
	display: none;
	border: 0;
	background: var(--red);
	color: #fff;
	font-family: var(--font-body);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.55rem 0.9rem;
	cursor: pointer;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.25rem;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
	background: var(--blue);
	color: #fff;
}

.btn-primary:hover {
	background: #0a5ad0;
	color: #fff;
}

.btn-outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.85);
	color: #fff;
}

.btn-outline:hover {
	background: #fff;
	color: var(--navy);
}

.btn-outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

.btn-outline-light:hover {
	background: #fff;
	color: var(--navy);
}

.btn-portal {
	background: var(--navy);
	color: #fff;
	padding: 0.55rem 0.9rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.btn-portal:hover {
	background: var(--blue);
	color: #fff;
}

.who-copy .btn-primary {
	margin-top: 0.5rem;
}

/* Hero — left copy + right photo slideshow */
.hero {
	position: relative;
	isolation: isolate;
	min-height: min(78vh, 640px);
	display: grid;
	align-items: center;
	padding: 4.5rem 0 4rem;
	overflow: hidden;
	color: #fff;
}

.hero-media {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(160deg, #001a2c, #0a3a5c 50%, #1a4f78);
	overflow: hidden;
}

.hero-slideshow {
	position: absolute;
	inset: 0;
}

.hero-slide {
	position: absolute;
	inset: 0;
	background-color: #001a2c;
	background-position: right center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 1.1s ease, transform 7s ease;
}

.hero-slide.is-active {
	opacity: 1;
	transform: scale(1);
	z-index: 1;
}

/* Left-only scrim: keep right half of photos clear */
.hero-scrim {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(
			90deg,
			rgba(0, 26, 44, 0.96) 0%,
			rgba(0, 41, 67, 0.9) 28%,
			rgba(0, 41, 67, 0.55) 46%,
			rgba(0, 41, 67, 0.12) 62%,
			transparent 74%
		),
		linear-gradient(
			180deg,
			rgba(0, 26, 44, 0.25) 0%,
			transparent 28%,
			transparent 78%,
			rgba(0, 26, 44, 0.35) 100%
		);
}

.hero:not(.has-slides) .hero-scrim {
	background:
		linear-gradient(105deg, rgba(0, 26, 44, 0.92) 0%, rgba(0, 41, 67, 0.78) 45%, rgba(12, 104, 233, 0.45) 100%),
		radial-gradient(circle at 75% 30%, rgba(255, 200, 120, 0.28), transparent 40%);
}

.hero-inner {
	position: relative;
	z-index: 3;
	/* Override .shell centering so the text column pins left, not mid-navy */
	width: min(42rem, 52%);
	max-width: calc(100% - 2rem);
	margin-inline: unset;
	margin-left: max(1rem, calc((100% - min(1180px, calc(100% - 2rem))) / 2));
	margin-right: auto;
	text-align: left;
}

.hero-kicker {
	margin: 0 0 0.85rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

.hero-title {
	margin: 0 0 1rem;
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #fff;
	text-align: left;
}

.hero-title span {
	color: #d7e8ff;
}

.hero-lead {
	margin: 0 0 1.6rem;
	font-size: 1.05rem;
	max-width: 38ch;
	color: rgba(255, 255, 255, 0.88);
	text-align: left;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-start;
}

/* News ticker — ICAB */
.ticker {
	background: var(--ticker);
	border-bottom: 1px solid #e4dccb;
}

.ticker-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: stretch;
	min-height: 2.7rem;
}

.ticker-label {
	display: inline-flex;
	align-items: center;
	padding: 0 1rem;
	background: var(--blue-soft);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.85rem;
}

.ticker-track-wrap {
	overflow: hidden;
	display: flex;
	align-items: center;
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-track {
	display: flex;
	gap: 2.5rem;
	white-space: nowrap;
	animation: ticker 42s linear infinite;
	padding-left: 1rem;
}

.ticker-track a {
	color: var(--navy);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
}

.ticker-track a:hover { color: var(--blue); }

/* Sections */
.section { padding: 4.25rem 0; }

.section-label {
	margin: 0 0 0.45rem;
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--blue);
	font-weight: 600;
}

.section-head h2,
.who-intro h2,
.cta-inner h2 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--navy);
	line-height: 1.15;
	font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

.section-head p,
.who-copy p {
	color: var(--muted);
}

.section-head {
	max-width: 40rem;
	margin-bottom: 2rem;
}

.section-head.center {
	text-align: center;
	margin-inline: auto;
}

.section-head.center p { margin: 0.55rem 0 0; }

.section-head.with-action {
	display: flex;
	justify-content: space-between;
	align-items: end;
	max-width: none;
}

.who-section { background: var(--mist); }

.who-grid {
	display: grid;
	grid-template-columns: 0.95fr 1.15fr;
	gap: 2.5rem;
	align-items: start;
}

.who-copy p { margin: 0 0 1rem; }

/* Portal cards — ICAB services */
.portals-section { background: #fff; }

.portal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.portal-card {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.4rem 1.25rem 1.5rem;
	border: 1px solid var(--line);
	background: #fff;
	text-decoration: none;
	color: inherit;
	box-shadow: var(--shadow);
	transition: border-color 0.2s ease, transform 0.2s ease;
	animation: rise 0.7s ease both;
}

.portal-card:nth-child(2) { animation-delay: 0.05s; }
.portal-card:nth-child(3) { animation-delay: 0.1s; }
.portal-card:nth-child(4) { animation-delay: 0.15s; }
.portal-card:nth-child(5) { animation-delay: 0.2s; }
.portal-card:nth-child(6) { animation-delay: 0.25s; }

.portal-card:hover {
	border-color: var(--blue);
	transform: translateY(-3px);
	color: inherit;
}

.portal-icon {
	font-family: var(--font-display);
	font-size: 1.1rem;
	color: var(--red);
	letter-spacing: 0.06em;
}

.portal-card h3 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--navy);
	letter-spacing: 0.02em;
}

.portal-card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.94rem;
}

.message-section { background: var(--mist); }

.message-grid {
	display: grid;
	grid-template-columns: 1.4fr 0.9fr;
	gap: 1rem;
}

.message-card,
.about-links-card {
	background: #fff;
	border: 1px solid var(--line);
	padding: 1.75rem;
	box-shadow: var(--shadow);
}

.message-card blockquote {
	margin: 0.5rem 0 0;
}

.message-card blockquote p {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.55;
	color: var(--navy);
	font-weight: 500;
}

.message-meta {
	margin: 1.1rem 0 0;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
}

.about-links {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
}

.about-links a {
	display: block;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
	color: var(--navy);
	font-weight: 600;
}

.about-links li:last-child a { border-bottom: 0; }

.about-links a:hover { color: var(--blue); }

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.news-card {
	background: #fff;
	border: 1px solid var(--line);
	padding: 1.35rem 1.25rem 1.4rem;
	box-shadow: var(--shadow);
}

.news-date {
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--red);
	font-weight: 600;
}

.news-card h3 {
	margin: 0.45rem 0 0.5rem;
	font-family: var(--font-display);
	font-size: 1.2rem;
	line-height: 1.25;
	text-transform: uppercase;
}

.news-card h3 a {
	color: var(--navy);
	text-decoration: none;
}

.news-card p {
	margin: 0 0 0.85rem;
	color: var(--muted);
	font-size: 0.94rem;
}

.read-more {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	text-decoration: none;
	color: var(--blue);
}

.cta-band {
	background: linear-gradient(100deg, var(--navy-deep), var(--navy) 55%, #0a4f8a);
	color: #fff;
	padding: 2.75rem 0;
}

.cta-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}

.cta-inner h2,
.cta-inner p { color: #fff; }

.cta-inner p {
	margin: 0.45rem 0 0;
	opacity: 0.88;
}

/* Inner pages */
.page-hero {
	padding: 2.75rem 0 1.75rem;
	background: var(--mist);
	border-bottom: 1px solid var(--line);
}

.page-hero h1 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 4vw, 2.7rem);
	text-transform: uppercase;
	color: var(--navy);
	line-height: 1.15;
	max-width: 18ch;
}

.content-shell { padding: 2rem 0 4rem; }

.entry-content {
	max-width: 48rem;
	background: #fff;
	border: 1px solid var(--line);
	padding: 1.6rem;
	box-shadow: var(--shadow);
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--font-display);
	text-transform: uppercase;
	color: var(--navy);
}

/* Footer */
.site-footer {
	background: var(--navy-deep);
	color: rgba(255, 255, 255, 0.84);
	padding: 3rem 0 1.25rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2rem;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
	margin: 0 0 0.6rem;
	font-family: var(--font-display);
	font-size: 1.7rem;
	letter-spacing: 0.06em;
	color: #fff;
}

.footer-logo-link {
	display: inline-block;
	line-height: 0;
	margin-bottom: 0.75rem;
	background: #fff;
	padding: 0.25rem;
}

.footer-logo-img {
	height: 3rem;
	width: auto;
	max-width: 200px;
	object-fit: contain;
}

.footer-blurb { margin: 0; max-width: 34ch; }

.footer-mail { margin: 0.85rem 0 0; }

.footer-mail a,
.footer-links a,
.to-top {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
}

.footer-mail a:hover,
.footer-links a:hover,
.to-top:hover { color: #fff; }

.footer-heading {
	margin: 0 0 0.75rem;
	font-family: var(--font-display);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 0.85rem;
	color: #9ec4e8;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.footer-base {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	font-size: 0.88rem;
}

body.admin-bar .site-header { top: 32px; }

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


@keyframes rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
	.portal-grid,
	.news-grid,
	.footer-grid,
	.who-grid,
	.message-grid {
		grid-template-columns: 1fr 1fr;
	}

	.cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 780px) {
	.nav-toggle { display: inline-flex; }

	.site-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem;
		padding: 0.85rem 1rem 1.1rem;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
	}

	.site-nav.is-open { display: flex; }

	.nav-list {
		flex-direction: column;
		align-items: stretch;
	}

	.topbar-inner {
		min-height: auto;
		padding: 0.55rem 0;
		justify-content: center;
	}

	.topbar-brand { order: 1; }
	.topbar-contact { order: 3; width: auto; max-width: 100%; justify-content: center; font-size: 0.78rem; }
	.topbar-actions { order: 2; margin-left: 0; }

	.topbar-logo-img { height: 2.65rem; max-height: 2.65rem; max-width: min(9rem, 55vw); }

	.hero { min-height: 70vh; padding: 3.5rem 0 3rem; }

	.hero-inner {
		width: calc(100% - 2rem);
		max-width: calc(100% - 2rem);
		margin-left: 1rem;
		margin-right: 1rem;
	}

	.hero-slide {
		background-position: center center;
	}

	.hero-scrim {
		background:
			linear-gradient(
				180deg,
				rgba(0, 26, 44, 0.88) 0%,
				rgba(0, 41, 67, 0.72) 42%,
				rgba(0, 41, 67, 0.35) 70%,
				rgba(0, 26, 44, 0.55) 100%
			);
	}

	.portal-grid,
	.news-grid,
	.footer-grid,
	.who-grid,
	.message-grid {
		grid-template-columns: 1fr;
	}

	.brand-tag { display: none; }

	.footer-base { flex-direction: column; }

	body.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
