/* CCI Core – site header, footer, fonts and base typography (used with the Carbon Counts theme or plain Hello Elementor). */
/* Self-hosted fonts (SIL Open Font License) – faster and no Google Fonts request. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
	--cc-navy: #051326; --cc-ink: #0A1F3D; --cc-lime: #A8E000; --cc-leaf: #5DB80B; --cc-slate: #4A5A6A; --cc-mist: #B6C2CF;
	--cc-border: #DCE3EA; --cc-head: "Montserrat", system-ui, sans-serif; --cc-body: "Inter", system-ui, sans-serif;
}
body { font-family: var(--cc-body); color: var(--cc-slate); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--cc-head); color: var(--cc-navy); }
a { color: #006FAE; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- header ---------- */
.cc-header { position: sticky; top: 0; z-index: 999; background: rgba(5, 19, 38, .96); backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-bar .cc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cc-header { top: 0; } }
.cc-header-inner { max-width: 1248px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cc-logo img { display: block; width: auto; height: 58px; }
.cc-nav { display: flex; align-items: center; gap: 28px; }
.cc-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cc-menu li { position: relative; margin: 0; }
.cc-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: #fff; font: 500 15px/1 var(--cc-body); text-decoration: none; transition: color .15s, background .15s; }
.cc-menu a:hover, .cc-menu .current-menu-item > a, .cc-menu .current_page_item > a { color: var(--cc-lime); background: rgba(255, 255, 255, .05); }
.cc-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: var(--cc-ink);
	border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; }
.cc-menu li:hover > .sub-menu, .cc-menu li:focus-within > .sub-menu { display: block; }
.cc-header-cta { display: inline-flex; align-items: center; padding: 13px 20px; border-radius: 10px; background: var(--cc-lime); color: var(--cc-navy);
	font: 600 15px/1 var(--cc-body); text-decoration: none; white-space: nowrap; transition: background .15s; }
.cc-header-cta:hover { background: #C4F23D; color: var(--cc-navy); }
.cc-burger { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: transparent; cursor: pointer; }
.cc-burger span:not(.screen-reader-text) { display: block; height: 2px; margin: 4px 0; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 1100px) {
	.cc-burger { display: block; }
	.cc-logo img { height: 48px; }
	.cc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 24px 24px;
		background: var(--cc-navy); border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.cc-header.is-open .cc-nav { display: flex; }
	.cc-menu { flex-direction: column; align-items: stretch; }
	.cc-menu a { padding: 14px 8px; font-size: 17px; }
	.cc-menu .sub-menu { position: static; display: block; background: transparent; border: 0; padding-left: 12px; }
	.cc-header-cta { justify-content: center; padding: 16px; }
	.cc-header.is-open .cc-burger span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
	.cc-header.is-open .cc-burger span:nth-of-type(3) { opacity: 0; }
	.cc-header.is-open .cc-burger span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- footer ---------- */
.cc-footer { background: var(--cc-navy); color: var(--cc-mist); font-family: var(--cc-body); border-top: 1px solid rgba(255, 255, 255, .06); }
.cc-footer-inner { max-width: 1248px; margin: 0 auto; padding: 72px 24px 48px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.cc-footer-brand p { margin: 18px 0 0; max-width: 340px; font-size: 15px; line-height: 1.65; }
.cc-footer .cc-logo img { height: 64px; }
.cc-footer h2 { margin: 6px 0 16px; color: #fff; font: 700 15px var(--cc-head); letter-spacing: .02em; }
.cc-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; }
.cc-footer a { color: var(--cc-mist); text-decoration: none; }
.cc-footer a:hover { color: var(--cc-lime); }
.cc-footer-bottom { max-width: 1248px; margin: 0 auto; padding: 22px 24px 28px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap;
	justify-content: space-between; gap: 8px 24px; font-size: 14px; }
.cc-footer-bottom strong { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .cc-footer-inner { grid-template-columns: 1fr 1fr; } .cc-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cc-footer-inner { grid-template-columns: 1fr; padding-top: 56px; } }

/* ---------- pages without Elementor (blog, legal pages) ---------- */
.site-main:not(.elementor) { max-width: 820px; }
.page-header .entry-title { font-family: var(--cc-head); color: var(--cc-navy); }
.cc-header .cc-burger, .cc-header .cc-burger:hover, .cc-header .cc-burger:focus { background: transparent; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }

/* footer extras */
.cc-footer-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 12px 20px; border-radius: 999px; background: var(--cc-lime);
	color: var(--cc-navy) !important; font: 600 15px/1 var(--cc-body); text-decoration: none; }
.cc-footer-cta:hover { background: #C4F23D; }
.cc-footer-contact li { display: grid; gap: 2px; }
.cc-footer-contact span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cc-lime); }
.cc-footer-bottom a { color: var(--cc-mist); text-decoration: underline; text-underline-offset: 3px; }
.cc-footer .cc-footer-menu { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cc-footer .cc-logo img { height: 72px; }
/* Hello Elementor resets */
.cc-header ul, .cc-footer ul { margin: 0; }
.cc-header a:focus-visible, .cc-footer a:focus-visible { outline: 2px solid var(--cc-lime); outline-offset: 3px; border-radius: 6px; }

/* Keep header/footer colours when Elementor's global kit styles links and headings (ID selectors win). */
#site-header .cc-menu a { color: #fff; }
#site-header .cc-menu a:hover, #site-header .cc-menu .current-menu-item > a, #site-header .cc-menu .current_page_item > a { color: var(--cc-lime); }
#site-header .cc-menu .sub-menu a { color: #fff; }
#site-header .cc-header-cta, #site-footer .cc-footer-cta { color: var(--cc-navy); }
#site-footer h2 { color: #fff; }
#site-footer, #site-footer p, #site-footer li { color: var(--cc-mist); }
#site-footer a { color: var(--cc-mist); }
#site-footer a:hover { color: var(--cc-lime); }
#site-footer .cc-footer-contact span { color: var(--cc-lime); }
#site-footer .cc-footer-bottom strong { color: #fff; }
