/* City Road theme. Tokens first, then base, layout, components. */
:root {
	--ink: #141926;
	--ink-soft: #2f4258;
	--red: #3654aa; /* brand accent (from the CRC logo diamond); token name kept for brevity */
	--slate: #55636f;
	--rule: #d3d9df;
	--mist: #edf0f3;
	--paper: #f7f6f3;
	--white: #ffffff;
	--font-display: "Newsreader", Georgia, "Times New Roman", serif;
	--font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
	--measure: 40rem;
	--wrap: 76rem;
	--space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem; --space-6: 6rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -.005em; margin: 0 0 var(--space-2); color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 var(--space-2); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.wrap .wrap { padding-left: 0; padding-right: 0; }
.wrap-narrow { max-width: var(--measure); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons and links */
.button { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 1rem; padding: .8rem 1.4rem; border: 2px solid var(--ink); border-radius: 2px; text-decoration: none; transition: background .15s, color .15s; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 1px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--white); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 4.5rem; }
.brand-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; text-decoration: none; line-height: 1; }
.brand-text span { display: block; font-family: var(--font-body); font-size: .75rem; font-weight: 500; letter-spacing: .04em; color: var(--slate); margin-top: .2rem; }
.custom-logo, .brand-logo img { height: 2.4rem; width: auto; }
.brand-logo { display: block; }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 2px solid var(--ink); border-radius: 2px; padding: .5rem .9rem; cursor: pointer; }
.primary-nav { display: flex; align-items: center; gap: var(--space-3); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3); }
.nav-list a { text-decoration: none; font-weight: 500; }
.nav-list .current-menu-item > a, .nav-list .current_page_item > a, .nav-list .current-menu-ancestor > a { border-bottom: 2px solid var(--red); }
.nav-list .sub-menu { display: none; }
@media (max-width: 56rem) {
	.nav-toggle { display: inline-block; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); padding: var(--space-3) 1.25rem; flex-direction: column; align-items: flex-start; }
	.primary-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; gap: var(--space-2); }
}

/* Hero: the one place the type does the work */
.hero { padding: var(--space-5) 0 var(--space-4); }
.hero-large { padding-top: var(--space-6); }
.hero-title { max-width: 22ch; position: relative; padding-bottom: var(--space-2); margin-bottom: var(--space-3); }
.hero-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 4.5rem; height: 4px; background: var(--red); }
.hero-large .hero-title { font-size: clamp(2.75rem, 6.5vw, 5rem); max-width: 18ch; }
.kicker { font-size: .9375rem; color: var(--slate); margin-bottom: var(--space-2); }
.kicker time { margin-left: .75rem; }
.hero-intro { font-size: 1.25rem; max-width: var(--measure); color: var(--ink-soft); }
.hero-actions { margin-top: var(--space-3); }
.hero-article { padding-bottom: var(--space-3); }

/* Featured-in band: serif run of names, like a masthead line */
.featured-in { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--space-3) 0; background: var(--paper); }
.featured-label { font-size: .875rem; color: var(--slate); margin-bottom: .25rem; }
.featured-list { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; margin: 0; color: var(--ink-soft); line-height: 1.5; }

/* Sections */
section { padding: var(--space-5) 0; }
.hero, .featured-in { padding-top: var(--space-5); }
.featured-in { padding: var(--space-3) 0; }
.page-content { padding-top: var(--space-4); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.section-head h2 { margin: 0; }

/* Prose */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--space-4); }
.prose h3 { margin-top: var(--space-3); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: var(--space-3) 0; padding-left: var(--space-2); border-left: 3px solid var(--red); font-family: var(--font-display); font-size: 1.25rem; }
.prose figure { margin: var(--space-3) 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.article-image { margin-bottom: var(--space-3); }

/* Services grid: a list with rules, not cards */
.services-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0 var(--space-4); border-top: 1px solid var(--rule); }
.services-grid li { padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); }
.services-grid h3 { margin-bottom: .4rem; }
.services-grid h3 a { text-decoration: none; }
.services-grid h3 a:hover { color: var(--red); }
.services-grid p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* Case studies */
.case-section { background: var(--mist); }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--space-4); }
.case-card img { aspect-ratio: 8 / 5.2; object-fit: cover; margin-bottom: var(--space-2); }
.case-client { font-size: .9375rem; color: var(--slate); margin-bottom: .35rem; }
.case-card h3 { font-size: 1.5rem; }
.case-card h3 a { text-decoration: none; }
.case-card h3 a:hover { color: var(--red); }
.stats { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-2) 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: .875rem; color: var(--slate); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; }
.stats-large dd { font-size: 2.75rem; }
.stats-large { margin-top: var(--space-3); }

/* Sectors list */
.sectors-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sectors-list li { border-bottom: 1px solid var(--rule); }
.sectors-list a { display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr; gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; text-decoration: none; align-items: baseline; }
.sector-name { font-family: var(--font-display); font-size: 1.75rem; }
.sector-desc { color: var(--ink-soft); }
.sectors-list a:hover .sector-name { color: var(--red); }
@media (max-width: 40rem) { .sectors-list a { grid-template-columns: 1fr; gap: .25rem; } }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--space-4); }
.testimonial { margin: 0; }
.testimonial blockquote { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.45; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; font-size: .9375rem; align-items: center; }
.testimonial-photo { grid-row: span 2; width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 600; }
.testimonial-role { color: var(--slate); }

/* Insights */
.insight-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: var(--space-4); }
.insight-type { font-size: .875rem; color: var(--slate); margin-bottom: .4rem; }
.insight-type time { margin-left: .75rem; }
.insight-list h3, .insight-list h2 { font-size: 1.375rem; }
.insight-list h3 a, .insight-list h2 a { text-decoration: none; }
.insight-list h3 a:hover, .insight-list h2 a:hover { color: var(--red); }
.insight-list p:last-child { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.insight-list img { aspect-ratio: 8 / 5.2; object-fit: cover; margin-bottom: var(--space-2); }
.pagination { margin-top: var(--space-4); }
.pagination .nav-links { display: flex; gap: var(--space-1); }
.pagination .page-numbers { padding: .4rem .8rem; border: 1px solid var(--rule); text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; }

/* FAQ */
.faq { background: var(--paper); }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary { list-style: none; cursor: pointer; padding: var(--space-2) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.75rem; color: var(--red); line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary h3 { margin: 0; font-size: 1.25rem; }
.faq-answer { padding-bottom: var(--space-3); color: var(--ink-soft); max-width: var(--measure); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; }
.cta-inner { max-width: var(--measure); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6dde5; font-size: 1.125rem; }
.cta-band .button-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .button-primary:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: var(--space-5); }
.contact-details { border-top: 4px solid var(--red); padding-top: var(--space-2); }
.contact-details h2 { font-size: 1.5rem; }
address { font-style: normal; margin-bottom: var(--space-2); }
@media (max-width: 48rem) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); padding: var(--space-5) 0 var(--space-3); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--space-4); }
.footer-name { font-family: var(--font-display); font-size: 1.375rem; margin-bottom: var(--space-2); }
.footer-heading { font-family: var(--font-body); font-size: .9375rem; font-weight: 600; margin-bottom: var(--space-1); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .4rem; }
.footer-list a { text-decoration: none; color: var(--ink-soft); }
.footer-list a:hover { color: var(--red); }
.footer-base { margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--rule); color: var(--slate); font-size: .875rem; }
.footer-base a { color: var(--slate); }
@media (max-width: 56rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .footer-grid { grid-template-columns: 1fr; } }

/* Admin meta box */
.cityroad-meta .description { color: #646970; }
