/*
Theme Name: Colourjet
Description: Custom theme for colourjet.com – Landor (UK) Ltd.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: colourjet
*/

:root {
	--blue: #1758a2;
	--blue-dark: #0f3f78;
	--blue-tint: #eef4fb;
	--red: #e83f37;
	--red-dark: #c92e27;
	--ink: #1c2430;
	--muted: #5b6676;
	--line: #e3e8ef;
	--bg: #ffffff;
	--bg-soft: #f6f8fb;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(15, 63, 120, .08);
	--wrap: 1180px;
	--font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 650; }
p { margin: 0 0 1.1em; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; clip: auto; width: auto; height: auto; padding: 10px 16px; background: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.topbar { background: var(--blue-dark); color: #dbe6f4; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand .tagline { font-size: 12.5px; color: var(--muted); margin-top: 4px; letter-spacing: .02em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 550; font-size: 15.5px; border-radius: 6px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_parent > a { color: var(--blue); background: var(--blue-tint); }
.main-nav .menu-cta a { background: var(--red); color: #fff; margin-left: 8px; }
.main-nav .menu-cta a:hover { background: var(--red-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

@media (max-width: 900px) {
	.admin-bar .site-header { top: 0; }
	.nav-toggle { display: block; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 2px; }
	.main-nav .menu-cta a { margin: 8px 0 0; text-align: center; }
	.brand img { height: 38px; }
	.site-header .wrap { min-height: 72px; }
	.topbar .hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link, .wp-element-button, button[type=submit] {
	display: inline-block; padding: 13px 26px; border-radius: 8px; border: 0; font: inherit; font-weight: 600; font-size: 16px;
	background: var(--red); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover, .wp-block-button__link:hover, button[type=submit]:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.is-style-outline .wp-block-button__link { background: transparent; color: inherit; border: 2px solid currentColor; padding: 11px 24px; }
.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.12); color: inherit; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page layout ---------- */
.site-main { min-height: 50vh; }
.page-hero { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: var(--red); opacity: .18; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: 10px 0 0; color: #d6e3f3; max-width: 680px; font-size: 1.1rem; }

.entry-content > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.entry-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.entry-content > .alignfull.section { padding-left: 24px; padding-right: 24px; }
@media (max-width: 560px) { .entry-content > .alignfull.section { padding-left: 20px; padding-right: 20px; } }
.entry-content > .alignwide { max-width: var(--wrap); }
.entry-content > p, .entry-content > ul, .entry-content > h2, .entry-content > h3 { max-width: 820px; }
.entry-content > :first-child { margin-top: 56px; }
.entry-content > :last-child { margin-bottom: 72px; }
.entry-content > .alignfull:first-child { margin-top: 0; }
.entry-content > .alignfull:last-child { margin-bottom: 0; }

/* Sections */
.section { padding: 80px 24px; margin: 0; }
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section.is-soft { background: var(--bg-soft); }
.section.is-blue { background: var(--blue-dark); color: #e6eef8; }
.section.is-blue h2, .section.is-blue h3 { color: #fff; }
.section .lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.section.is-blue .lead { color: #cfdcee; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.has-text-align-center.lead, .lead.has-text-align-center { margin-left: auto; margin-right: auto; }

/* Hero (cover block) */
.hero.wp-block-cover { min-height: 620px; padding: 0 24px; align-items: center; }
.hero .wp-block-cover__inner-container { max-width: var(--wrap); width: 100%; margin: 0 auto; color: #fff; }
.hero h1 { color: #fff; max-width: 720px; }
.hero p { font-size: 1.2rem; max-width: 620px; color: #eef3fa; }
.hero .eyebrow { color: #ffb3ae; }
.hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(10,33,64,.92) 0%, rgba(15,63,120,.75) 45%, rgba(15,63,120,.15) 100%) !important; opacity: 1 !important; }
@media (max-width: 700px) { .hero.wp-block-cover { min-height: 520px; } .hero .wp-block-cover__background { background: rgba(10,33,64,.78) !important; } }

/* Cards */
.cards { gap: 28px !important; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.card .wp-block-image { margin: 0; }
.card .wp-block-image img { width: 100%; height: 260px; object-fit: cover; }
.card .card-body { padding: 26px 28px 30px; flex: 1; }
.card .card-body > :last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; margin-bottom: 12px; }
.tag.is-red { background: #fdecea; color: var(--red-dark); }
.tag.is-blue { background: var(--blue-tint); color: var(--blue); }

.features { gap: 28px !important; }
.feature { padding: 28px; border-radius: var(--radius); background: #fff; border-top: 4px solid var(--blue); box-shadow: var(--shadow); height: 100%; }
.feature:nth-child(2) { border-top-color: var(--red); }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--muted); margin: 0; }
.section.is-blue .feature { background: rgba(255,255,255,.06); box-shadow: none; }
.section.is-blue .feature p { color: #cfdcee; }

/* Application gallery */
/* Classic themes wrap group contents in .wp-block-group__inner-container */
.app-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.app-grid figure { margin: 0 !important; position: relative; border-radius: var(--radius); overflow: hidden; grid-column: span 2; aspect-ratio: 4/3; }
.app-grid figure:nth-child(1), .app-grid figure:nth-child(2) { grid-column: span 3; aspect-ratio: 16/9; }
.app-grid figure img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .5s; }
.app-grid figure:hover img { transform: scale(1.04); }
.app-grid figcaption { position: absolute; inset: auto 0 0 0; margin: 0 !important; padding: 40px 18px 14px; color: #fff; font-weight: 650; font-size: 1.05rem; text-align: left !important; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
@media (max-width: 800px) { .app-grid > .wp-block-group__inner-container { grid-template-columns: 1fr 1fr; } .app-grid figure, .app-grid figure:nth-child(2) { grid-column: span 1; aspect-ratio: 1; } .app-grid figure:nth-child(1) { grid-column: span 2; aspect-ratio: 16/9; } }
.section > .wp-block-group__inner-container > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.card-body > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }

/* Product rows */
.product-row { gap: 56px !important; align-items: center !important; padding: 56px 0; border-bottom: 1px solid var(--line); }
.product-row:last-child { border-bottom: 0; }
.product-row .wp-block-image img { border-radius: var(--radius); box-shadow: var(--shadow); }
.product-row .wp-block-image.is-logo img { box-shadow: none; max-height: 120px; width: auto; }
.product-row ul { padding-left: 1.1em; }
.product-row li { margin-bottom: .35em; }
.product-row li::marker { color: var(--red); }

/* Logo strip */
.logo-strip { align-items: center !important; justify-content: center; gap: 56px !important; }
.logo-strip .wp-block-image { margin: 0; }
.logo-strip img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .7; transition: .2s; }
.logo-strip a:hover img { filter: none; opacity: 1; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; border-radius: 16px; padding: 48px 52px !important; align-items: center !important; gap: 32px !important; margin: 0 auto; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #d6e3f3; margin: 0; }
.cta-band .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 780px) { .cta-band { padding: 36px 28px !important; } .cta-band .wp-block-buttons { justify-content: flex-start; } }

/* Columns block fallback stacking */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 32px; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) { .wp-block-columns { flex-direction: column; } .wp-block-column { flex-basis: 100% !important; } }

.wp-block-embed iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: var(--radius); }
.wp-block-embed__wrapper { position: relative; }

/* ---------- News ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; padding: 56px 0 80px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.post-card img { width: 100%; height: 210px; object-fit: cover; }
.post-card .body { padding: 22px 24px 26px; }
.post-card h2 { font-size: 1.3rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--blue); }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.single-featured { max-width: 820px; margin: 48px auto 0; padding: 0 24px; }
.single-featured img { border-radius: var(--radius); }
.post-nav { max-width: 820px; margin: 0 auto 72px; padding: 0 24px; }

/* ---------- Contact ---------- */
.contact-grid { gap: 48px !important; }
.contact-card { background: var(--bg-soft); border-radius: var(--radius); padding: 30px; }
.contact-card h3 { margin-bottom: .5em; }
.contact-card .big { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: var(--blue); }
.cj-form { display: grid; gap: 16px; }
.cj-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .cj-form .row { grid-template-columns: 1fr; } }
.cj-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.cj-form input, .cj-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cdd5e0; border-radius: 8px; font: inherit; font-size: 16px; background: #fff; }
.cj-form input:focus, .cj-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.cj-form .hp { position: absolute; left: -9999px; }
.cj-notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; }
.cj-notice.ok { background: #e7f6ec; color: #1d6b37; }
.cj-notice.err { background: #fdecea; color: #a3241e; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1f3a; color: #b9c7da; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dbe6f4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.footer-logo img { height: 34px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; grid-template-columns: none; font-size: 14px; flex-wrap: wrap; }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .wrap { grid-template-columns: 1fr; } .section { padding: 56px 20px; } }

.error-404 { text-align: center; padding: 100px 24px; }

/* ---------- Hubs & child pages ---------- */
.breadcrumb { font-size: 14px; margin-bottom: 14px; color: #cfdcee; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }
.breadcrumb span { margin: 0 8px; opacity: .6; }
.single-featured img { width: 100%; max-height: 420px; object-fit: cover; box-shadow: var(--shadow); }

.hub { padding: 8px 0 80px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.hub-card { display: flex; flex-direction: column; padding: 24px 26px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s, border-color .2s; }
.hub-card:nth-child(3n+2) { border-left-color: var(--red); }
.hub-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.hub-card h3 { font-size: 1.12rem; margin-bottom: .4em; }
.hub-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; flex: 1; }
.hub-card .more { color: var(--blue); font-weight: 600; font-size: 15px; }

.entry-content > ol { max-width: 820px; }
.entry-content li { margin-bottom: .4em; }
.entry-content > ul li::marker, .entry-content > ol li::marker { color: var(--red); font-weight: 700; }
.entry-content > h2 { margin-top: 1.6em; }
.entry-content > h3 { margin-top: 1.3em; }

.related { background: var(--bg-soft); padding: 48px 0; }
.related h2 { font-size: 1.4rem; }
.related ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 28px; }
.related li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 550; color: var(--ink); }
.related li a:hover { color: var(--blue); }
.cta-wrap { padding-top: 64px; padding-bottom: 72px; }
