/*
Theme Name: Conveyancing Jobs UK 2026
Theme URI: https://conveyancing-jobs.co.uk/
Author: Ten Percent Legal Recruitment
Description: A fast, accessible recruitment theme for UK conveyancing vacancies.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: conveyancing-jobs-2026
*/

:root {
    --cj-navy: #102a43;
    --cj-navy-deep: #081c2c;
    --cj-terracotta: #bd4f32;
    --cj-terracotta-dark: #963a24;
    --cj-ink: #243443;
    --cj-muted: #5f6f7d;
    --cj-stone: #f3efe7;
    --cj-stone-light: #faf8f3;
    --cj-white: #ffffff;
    --cj-line: #d9e0e5;
    --cj-green: #315f55;
    --cj-shadow: 0 18px 45px rgba(16, 42, 67, .12);
    --cj-radius: 14px;
    --cj-heading: Charter, "Bitstream Charter", "Sitka Text", Georgia, serif;
    --cj-body: Aptos, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--cj-ink);
    background: var(--cj-white);
    font-family: var(--cj-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cj-terracotta-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cj-navy); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 {
    color: var(--cj-navy);
    font-family: var(--cj-heading);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
}
h1 { font-size: clamp(2.55rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
p, ul { margin-top: 0; }

.cj-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.cj-container--narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.cj-section { padding: clamp(64px, 9vw, 112px) 0; }
.cj-section--stone { background: var(--cj-stone-light); }
.cj-section--navy { color: #e8eff4; background: var(--cj-navy); }
.cj-section--navy h2, .cj-section--navy h3 { color: var(--cj-white); }
.cj-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--cj-terracotta-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.cj-section--navy .cj-eyebrow { color: #f0a68f; }
.cj-lead { max-width: 740px; color: var(--cj-muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.cj-section--navy .cj-lead { color: #cad7e0; }
.cj-skip-link {
    position: fixed; z-index: 1000; top: 10px; left: 10px; padding: .7rem 1rem;
    color: var(--cj-white); background: var(--cj-navy); transform: translateY(-150%);
}
.cj-skip-link:focus { transform: translateY(0); }

.cj-site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(16, 42, 67, .09); background: rgba(255, 255, 255, .98); }
.cj-header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cj-brand { display: flex; align-items: center; gap: .85rem; color: var(--cj-navy); text-decoration: none; }
.cj-brand img { width: 215px; height: auto; }
.cj-brand-text { display: grid; line-height: 1; }
.cj-brand-title { font-family: var(--cj-heading); font-size: 1.45rem; font-weight: 700; }
.cj-brand-note { margin-top: .35rem; color: var(--cj-muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cj-nav-wrap { display: flex; align-items: center; gap: 1.5rem; }
.cj-menu { display: flex; align-items: center; gap: 1.3rem; margin: 0; padding: 0; list-style: none; }
.cj-menu a { color: var(--cj-ink); font-size: .93rem; font-weight: 700; text-decoration: none; }
.cj-menu a:hover, .cj-menu .current-menu-item > a { color: var(--cj-terracotta-dark); }
.cj-header-cta { white-space: nowrap; }
.cj-menu-toggle { display: none; border: 0; padding: .65rem; color: var(--cj-navy); background: transparent; cursor: pointer; }
.cj-menu-toggle span { display: block; width: 26px; height: 2px; margin: 5px 0; background: currentColor; }

.cj-button, .tpcf-apply, .tpcf-details, .tpcf-all-jobs a {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
    border: 2px solid transparent; border-radius: 999px; padding: .65rem 1.3rem;
    font-size: .92rem; font-weight: 800; line-height: 1.1; text-decoration: none; transition: .18s ease;
}
.cj-button--primary, .tpcf-apply { color: var(--cj-white); background: var(--cj-terracotta); }
.cj-button--primary:hover, .tpcf-apply:hover { color: var(--cj-white); background: var(--cj-terracotta-dark); transform: translateY(-1px); }
.cj-button--secondary, .tpcf-details, .tpcf-all-jobs a { border-color: var(--cj-navy); color: var(--cj-navy); background: transparent; }
.cj-button--secondary:hover, .tpcf-details:hover, .tpcf-all-jobs a:hover { color: var(--cj-white); background: var(--cj-navy); }
.cj-button--light { color: var(--cj-navy); background: var(--cj-white); }
.cj-button--light:hover { color: var(--cj-white); background: var(--cj-terracotta); }
.cj-button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.cj-hero { position: relative; overflow: hidden; background: var(--cj-stone-light); }
.cj-hero::after {
    content: ""; position: absolute; right: -7%; bottom: -40%; width: min(48vw, 720px); aspect-ratio: 1;
    border: 110px solid rgba(189, 79, 50, .08); border-radius: 50%; pointer-events: none;
}
.cj-hero-inner { position: relative; z-index: 1; min-height: 630px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(50px, 8vw, 110px); padding: 80px 0 96px; }
.cj-hero h1 { max-width: 780px; margin: .4rem 0 1.4rem; }
.cj-hero h1 em { color: var(--cj-terracotta); font-style: normal; }
.cj-hero-copy > p { max-width: 670px; color: var(--cj-muted); font-size: 1.22rem; }
.cj-search-panel { position: relative; padding: clamp(28px, 4vw, 44px); border-radius: 20px; color: var(--cj-white); background: var(--cj-navy); box-shadow: var(--cj-shadow); }
.cj-search-panel::before { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; pointer-events: none; }
.cj-search-panel > * { position: relative; }
.cj-search-panel h2 { margin: 0 0 .8rem; color: var(--cj-white); font-size: 2rem; }
.cj-search-panel p { color: #cfdae2; }
.cj-search-links { display: grid; gap: .75rem; margin-top: 1.5rem; }
.cj-search-link { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.17); color: var(--cj-white); font-weight: 700; text-decoration: none; }
.cj-search-link::after { content: "→"; color: #f0a68f; }
.cj-search-link:hover { color: #f0a68f; }
.cj-stat-strip { border-block: 1px solid var(--cj-line); background: var(--cj-white); }
.cj-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.cj-stat { padding: 26px; text-align: center; }
.cj-stat + .cj-stat { border-left: 1px solid var(--cj-line); }
.cj-stat strong { display: block; color: var(--cj-navy); font-family: var(--cj-heading); font-size: 1.55rem; }
.cj-stat span { color: var(--cj-muted); font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.cj-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.cj-section-heading h2 { margin: 0; }
.cj-section-heading p { max-width: 580px; margin: 0; color: var(--cj-muted); }
.cj-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cj-info-card { position: relative; min-height: 100%; padding: 2rem; border: 1px solid var(--cj-line); border-radius: var(--cj-radius); background: var(--cj-white); }
.cj-info-card::before { content: ""; display: block; width: 38px; height: 4px; margin-bottom: 1.5rem; border-radius: 99px; background: var(--cj-terracotta); }
.cj-info-card h3 { margin: 0 0 .85rem; }
.cj-info-card p:last-child { margin-bottom: 0; }
.cj-number { color: var(--cj-terracotta); font-family: var(--cj-heading); font-size: 3rem; line-height: 1; }
.cj-link-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.cj-link-list a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--cj-line); color: var(--cj-navy); font-weight: 800; text-decoration: none; }
.cj-link-list a::after { content: "→"; float: right; color: var(--cj-terracotta); }

.cj-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 8vw, 100px); align-items: center; }
.cj-panel { padding: clamp(30px, 5vw, 56px); border-radius: 20px; background: var(--cj-stone); }
.cj-panel h2 { margin-top: 0; }
.cj-checklist { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.cj-checklist li { position: relative; padding: .65rem 0 .65rem 2rem; border-bottom: 1px solid rgba(16,42,67,.12); }
.cj-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--cj-green); font-weight: 900; }
.cj-quote { margin: 0; padding-left: 2rem; border-left: 4px solid var(--cj-terracotta); color: var(--cj-navy); font-family: var(--cj-heading); font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.35; }

.cj-page-hero { padding: clamp(70px, 10vw, 120px) 0 64px; background: var(--cj-stone-light); }
.cj-page-hero h1 { max-width: 900px; margin: .4rem 0 1.2rem; font-size: clamp(2.7rem, 6vw, 4.6rem); }
.cj-page-hero p { max-width: 740px; color: var(--cj-muted); font-size: 1.2rem; }
.cj-prose { padding: 70px 0 100px; }
.cj-prose h2 { margin-top: 2.4rem; font-size: 2rem; }
.cj-prose h3 { margin-top: 2rem; }
.cj-prose a { font-weight: 700; }
.cj-contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.cj-contact-card { padding: 2rem; border-radius: var(--cj-radius); background: var(--cj-stone-light); }
.cj-contact-card h2 { margin-top: 0; font-size: 1.8rem; }
.cj-faq { border-top: 1px solid var(--cj-line); }
.cj-faq details { border-bottom: 1px solid var(--cj-line); padding: 1.1rem 0; }
.cj-faq summary { color: var(--cj-navy); font-family: var(--cj-heading); font-size: 1.22rem; font-weight: 700; cursor: pointer; }
.cj-faq details p { margin: .8rem 0 .2rem; }

/* Live vacancy feed */
.tpcf-jobs { width: 100%; }
.tpcf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.tpcf-card { display: flex; flex-direction: column; min-height: 100%; padding: 1.6rem; border: 1px solid var(--cj-line); border-radius: var(--cj-radius); background: var(--cj-white); box-shadow: none; transition: .2s ease; }
.tpcf-card:hover { border-color: rgba(189,79,50,.5); box-shadow: 0 12px 30px rgba(16,42,67,.09); transform: translateY(-2px); }
.tpcf-card[hidden] { display: none; }
.tpcf-card__topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tpcf-badge { padding: .28rem .65rem; border-radius: 99px; color: var(--cj-green); background: #e5eeeb; font-size: .75rem; font-weight: 800; }
.tpcf-date { color: var(--cj-muted); font-size: .78rem; }
.tpcf-card h3 { margin: 1rem 0 .7rem; font-size: 1.55rem; }
.tpcf-card h3 a { color: var(--cj-navy); text-decoration: none; }
.tpcf-card h3 a:hover { color: var(--cj-terracotta-dark); }
.tpcf-card > p { color: var(--cj-muted); }
.tpcf-meta { display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin: 0 0 1rem; padding: 0; color: var(--cj-ink); list-style: none; font-size: .86rem; font-weight: 700; }
.tpcf-meta li { position: relative; padding-left: 1rem; }
.tpcf-meta li::before { content: ""; position: absolute; top: .68em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--cj-terracotta); }
.tpcf-card__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: auto; padding-top: .7rem; }
.tpcf-details, .tpcf-apply { min-height: 42px; padding: .55rem 1rem; }
.tpcf-filters { display: grid; grid-template-columns: 1.35fr 1fr .9fr .9fr auto; gap: .8rem; align-items: end; margin-bottom: 1rem; padding: 1.25rem; border-radius: var(--cj-radius); background: var(--cj-stone); }
.tpcf-filter { display: grid; gap: .35rem; }
.tpcf-filter span { color: var(--cj-navy); font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.tpcf-filter input, .tpcf-filter select { width: 100%; min-height: 48px; border: 1px solid #bdc8d0; border-radius: 8px; padding: .55rem .75rem; color: var(--cj-ink); background: var(--cj-white); }
.tpcf-filter input:focus, .tpcf-filter select:focus { outline: 3px solid rgba(189,79,50,.2); border-color: var(--cj-terracotta); }
.tpcf-reset { min-height: 48px; border: 0; border-radius: 8px; padding: .55rem 1rem; color: var(--cj-white); background: var(--cj-navy); font-weight: 800; cursor: pointer; }
.tpcf-count { color: var(--cj-muted); }
.tpcf-no-results { padding: 2rem; text-align: center; background: var(--cj-stone-light); }
.tpcf-no-results[hidden] { display: none; }
.tpcf-all-jobs { margin: 2rem 0 0; text-align: center; }
.tpcf-updated { margin: 1.2rem 0 0; color: var(--cj-muted); font-size: .76rem; text-align: right; }
.tpcf-feed-notice { padding: 2rem; border: 1px solid var(--cj-line); border-radius: var(--cj-radius); background: var(--cj-stone-light); }

.cj-cta-band { position: relative; overflow: hidden; color: var(--cj-white); background: var(--cj-terracotta); }
.cj-cta-band::before { content: ""; position: absolute; left: -100px; top: -180px; width: 430px; height: 430px; border: 80px solid rgba(255,255,255,.08); border-radius: 50%; }
.cj-cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 65px 0; }
.cj-cta-inner h2 { max-width: 760px; margin: 0; color: var(--cj-white); }
.cj-cta-inner p { max-width: 650px; margin: .7rem 0 0; color: #fff2ed; }

.cj-site-footer { color: #c9d4dc; background: var(--cj-navy-deep); }
.cj-footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 3rem; padding: 72px 0 50px; }
.cj-footer-brand .cj-brand { color: var(--cj-white); }
.cj-footer-brand .cj-brand-note { color: #b7c7d1; }
.cj-footer-brand p { max-width: 350px; margin-top: 1.3rem; }
.cj-footer-title { margin: 0 0 1rem; color: var(--cj-white); font-family: var(--cj-body); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cj-footer-menu { margin: 0; padding: 0; list-style: none; }
.cj-footer-menu li { margin: .5rem 0; }
.cj-footer-menu a { color: #c9d4dc; text-decoration: none; }
.cj-footer-menu a:hover { color: var(--cj-white); }
.cj-footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.cj-footer-bottom p { margin: 0; }

@media (max-width: 1020px) {
    .cj-header-cta { display: none; }
    .cj-menu-toggle { display: block; }
    .cj-nav-wrap { position: absolute; top: 92px; left: 0; right: 0; display: none; padding: 1.25rem 20px 1.6rem; border-top: 1px solid var(--cj-line); background: var(--cj-white); box-shadow: var(--cj-shadow); }
    .cj-nav-wrap.is-open { display: block; }
    .cj-menu { display: grid; gap: 0; }
    .cj-menu a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--cj-line); }
    .cj-hero-inner { grid-template-columns: 1fr; min-height: 0; }
    .cj-search-panel { max-width: 680px; }
    .tpcf-filters { grid-template-columns: repeat(2, 1fr); }
    .cj-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .cj-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .cj-container, .cj-container--narrow { width: min(100% - 28px, 1180px); }
    .cj-header-inner { min-height: 78px; }
    .cj-nav-wrap { top: 78px; }
    .cj-brand img { width: 190px; }
    .cj-brand-title { font-size: 1.25rem; }
    .cj-hero-inner { padding: 58px 0 72px; gap: 42px; }
    .cj-stats, .cj-card-grid, .cj-split, .cj-contact-grid, .tpcf-grid, .tpcf-filters { grid-template-columns: 1fr; }
    .cj-stat + .cj-stat { border-top: 1px solid var(--cj-line); border-left: 0; }
    .cj-section-heading { display: block; }
    .cj-section-heading p { margin-top: 1rem; }
    .cj-link-list { grid-template-columns: 1fr; }
    .cj-cta-inner { display: block; }
    .cj-cta-inner .cj-button { margin-top: 1.5rem; }
    .cj-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .cj-footer-brand { grid-column: 1 / -1; }
    .cj-footer-bottom { display: block; }
    .cj-footer-bottom p + p { margin-top: .5rem; }
}

@media (max-width: 480px) {
    .cj-footer-grid { grid-template-columns: 1fr; }
    .cj-brand-note { display: none; }
    .cj-button-row, .tpcf-card__actions { display: grid; }
    .cj-button, .tpcf-details, .tpcf-apply { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

