/* =====================================================================
   JAMES Y7 LTD — GOV.UK Design System Theme
   Premium Private Corporate Design System
   ===================================================================== */

/* Google Fonts — closest available to GDS Transport */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =====================================================================
   RESET & BASE
   ===================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================================
   GOV.UK COLOUR TOKENS
   ===================================================================== */
:root {
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --brand-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --brand-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --brand-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* Core GOV.UK palette */
    --brand-dark: #0f172a;
    /* Sleek Slate 900 */
    --brand-primary: #2563eb;
    /* Cobalt Blue */
    --brand-accent-bg: #fef3c7;
    /* Light Amber 100 */
    --brand-accent: #d97706;
    /* Rich Amber 700 */
    --brand-success: #10b981;
    /* Emerald Green */
    --brand-danger: #ef4444;
    /* Rose Red */
    --brand-white: #ffffff;
    --brand-bg-light: #f8fafc;
    /* Slate 50 */
    --brand-border-mid: #cbd5e1;
    /* Slate 300 */
    --brand-text-muted: #64748b;
    /* Slate 500 */
    --brand-border: #e2e8f0;
    /* Slate 200 */
    --brand-primary-light: #3b82f6;
    /* Sky Blue 500 */
    --brand-link: #2563eb;
    --brand-link-visited: #475569;
    --brand-focus: #93c5fd;
    --brand-focus-text: #0f172a;

    /* Spacing scale (8px base) */
    --s1: 5px;
    --s2: 10px;
    --s3: 15px;
    --s4: 20px;
    --s5: 25px;
    --s6: 30px;
    --s7: 40px;
    --s8: 60px;
}

/* =====================================================================
   TYPOGRAPHY — GDS Transport style
   ===================================================================== */
body {
    font-family: 'Inter', 'GDS Transport', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--brand-dark);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* =====================================================================
   LINKS — exact GOV.UK link style
   ===================================================================== */
a {
    color: var(--brand-link);
    text-decoration: underline;
    text-underline-offset: 0.1em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--brand-primary);
    text-decoration-thickness: 3px;
}

a:focus {
    background-color: var(--brand-focus);
    box-shadow: 0 -2px var(--brand-focus), 0 4px var(--brand-focus-text);
    outline: 3px solid transparent;
    color: var(--brand-focus-text);
    text-decoration: none;
}

a:visited {
    color: var(--brand-link-visited);
}

a:visited:hover {
    color: #7e7e7e;
}

/* =====================================================================
   SKIP LINK — accessibility
   ===================================================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 1000;
    padding: 10px 15px;
    background: var(--brand-focus);
    color: var(--brand-focus-text);
    font-weight: 700;
    text-decoration: none;
    transition: top 0.1s;
}

.skip-link:focus {
    top: 0;
}

/* =====================================================================
   BLACK TOP BAR (Crown copyright bar)
   ===================================================================== */
.top-bar {
    background: var(--brand-dark);
    color: var(--brand-white);
    padding: 0;
    border-bottom: 0;
}

.top-bar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    line-height: 1.4;
}

.top-bar a {
    color: var(--brand-white);
    text-decoration: underline;
    font-size: 14px;
}

.top-bar a:hover {
    color: var(--brand-white);
    text-decoration-thickness: 2px;
}

.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}

/* =====================================================================
   HEADER — GOV.UK black header with yellow bottom border
   ===================================================================== */
header {
    background: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 100%);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--brand-primary);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo block */
.logo-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    text-decoration: none;
}

.logo-name {
    font-size: 30px;
    font-weight: 700;
    color: var(--brand-white);
    letter-spacing: -0.5px;
    line-height: 1.05;
}

.logo-sub {
    font-size: 14px;
    color: var(--brand-white);
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0;
    line-height: 1.3;
}

/* Header right info */
.header-info {
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
}

.header-info strong {
    display: block;
    font-size: 12px;
    opacity: 0.6;
    margin-top: 3px;
}

/* =====================================================================
   NAVIGATION — GOV.UK white nav bar with underline active
   ===================================================================== */
nav {
    background: var(--brand-white);
    border-bottom: 1px solid var(--brand-border);
    box-shadow: var(--brand-shadow);
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    gap: 0;
}

.nav-inner::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

nav a {
    color: var(--brand-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    margin: 8px 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

nav a:hover {
    background: var(--brand-bg-light);
    color: var(--brand-primary);
    text-decoration: none;
}

nav a.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-primary);
    font-weight: 700;
}

nav a:focus {
    background: var(--brand-focus);
    box-shadow: 0 -2px var(--brand-focus), 0 4px var(--brand-focus-text);
    color: var(--brand-focus-text);
    outline: none;
    border-bottom-color: transparent;
}

/* =====================================================================
   PAGE VISIBILITY
   ===================================================================== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* =====================================================================
   HERO — GOV.UK style (clean, strong, black + yellow accent)
   ===================================================================== */
.hero {
    background: radial-gradient(circle at top right, #1e1b4b 0%, #0f172a 100%);
    color: var(--brand-white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--brand-white);
    letter-spacing: -1px;
}

.hero h1 span {
    color: #3b82f6;
    /* Glowing blue accent */
    display: block;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 18px;
    color: #94a3b8;
    /* Muted slate white */
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 90%;
}

/* CTA buttons */
.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 25px;
}

/* =====================================================================
   GOVUK BUTTONS
   ===================================================================== */
.btn-primary,
.govuk-button {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1.25;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    position: relative;
    top: 0;
}

.btn-primary:hover,
.govuk-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.btn-primary:focus,
.govuk-button:focus {
    outline: 3px solid var(--brand-focus);
    outline-offset: 0;
    box-shadow: inset 0 0 0 2px var(--brand-dark);
    text-decoration: none;
}

.btn-primary:active,
.govuk-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Secondary / ghost button */
.btn-secondary {
    background-color: transparent;
    color: #e2e8f0;
    /* Light slate text for dark hero */
    font-weight: 600;
    font-size: 15px;
    padding: 11px 22px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    font-family: inherit;
    line-height: 1.25;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.btn-secondary:focus {
    background: var(--brand-focus);
    color: var(--brand-dark);
    border-color: var(--brand-focus);
    outline: 3px solid transparent;
    box-shadow: inset 0 0 0 1px var(--brand-dark);
    text-decoration: none;
}

/* Dark/blue button (CTA strip) */
.btn-dark {
    padding: 8px 10px 7px;
    border: 2px solid rgba(0, 0, 0, 0);
    border-radius: var(--radius-sm);
    color: #fff;
    background-color: #00703c;
    box-shadow: 0 2px 0 #002d18;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    line-height: 1.25;
    transition: background 0.1s ease;
    position: relative;
    top: 0;
}

.btn-dark:hover {
    background-color: #005a30;
    color: #fff;
    text-decoration: none;
}

/* =====================================================================
   TRUST BOX (Credentials box in hero)
   ===================================================================== */
.trust-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--brand-primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px;
    margin-top: 10px;
    backdrop-filter: blur(10px);
}

.trust-box h3 {
    font-size: 13px;
    font-weight: 700;
    color: #3b82f6;
    /* Primary blue tint */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.trust-box p {
    font-size: 13.5px;
    color: #cbd5e1;
    /* Light slate text */
    line-height: 1.6;
}

/* Hero right side card */
.hero-image-side {
    position: relative;
}

.hero-img-box {
    background: #1a2540;
    border: 3px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    text-align: center;
}

.hero-img-placeholder svg {
    opacity: 0.7;
}

.hero-img-placeholder p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.uk-flag-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--brand-accent-bg);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 11px;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================================
   DISCLAIMER BAR
   ===================================================================== */
.disclaimer-bar {
    background: var(--brand-bg-light);
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--brand-shadow);
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
    padding: 14px 15px;
    font-size: 14px;
    color: var(--brand-dark);
}

.disclaimer-bar-inner {
    max-width: 960px;
    margin: 0 auto;
    line-height: 1.5;
}

/* =====================================================================
   CONTENT SECTIONS
   ===================================================================== */
.section {
    padding: 35px 0;
}

.section+.section {
    border-top: 1px solid var(--brand-border);
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-grey {
    background: var(--brand-bg-light);
}

.section-blue {
    background: radial-gradient(circle at top right, #0f1f5f 0%, #0f172a 100%);
    color: var(--brand-white);
}

.section-blue h2 {
    color: var(--brand-white);
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}

.section-blue p {
    color: rgba(255, 255, 255, 0.9);
}

/* =====================================================================
   SECTION HEADINGS
   ===================================================================== */
h2.section-title {
    font-size: 27px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--brand-primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

h2.section-title.white {
    color: var(--brand-white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.section-lead {
    font-size: 19px;
    color: var(--brand-text-muted);
    margin-top: 8px;
    margin-bottom: 25px;
    line-height: 1.5;
    max-width: 680px;
}

.section-lead.white {
    color: rgba(255, 255, 255, 0.85);
}

/* =====================================================================
   SERVICE CARDS — GOV.UK style link-list cards
   ===================================================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    background: transparent;
    border: none;
}

.service-card {
    background: var(--brand-white);
    border-top: 4px solid var(--brand-primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 24px 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-top-color 0.2s;
    position: relative;
    box-shadow: var(--brand-shadow);
}

.service-card:hover {
    border-top-color: var(--brand-primary-light);
    background: var(--brand-white);
    transform: translateY(-2px);
    box-shadow: var(--brand-shadow-lg);
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-link);
    margin-bottom: 8px;
    text-decoration: underline;
    line-height: 1.25;
}

.service-card:hover h3 {
    color: var(--brand-primary);
}

.service-card p {
    font-size: 14px;
    color: var(--brand-text-muted);
    line-height: 1.5;
}

.service-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--brand-bg-light);
    border-radius: 50%;
    margin-bottom: 12px;
    color: var(--brand-dark);
    transition: background-color 0.1s ease, color 0.1s ease;
}

.service-card:hover .service-icon-circle {
    background-color: var(--brand-border);
}

.service-icon-arrow {
    width: 16px;
    height: 16px;
}

/* =====================================================================
   WHY CHOOSE GRID
   ===================================================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.15);
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.why-item .tick {
    width: 26px;
    height: 26px;
    background: var(--brand-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
}

.why-item .tick svg {
    width: 14px;
    height: 14px;
}

.why-item p {
    font-size: 16px;
    color: var(--brand-white);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

/* =====================================================================
   CTA STRIP
   ===================================================================== */
.cta-strip {
    background: radial-gradient(circle at top right, #0f1f5f 0%, #0f172a 100%);
    padding: 30px 0;
    border-top: 5px solid var(--brand-accent-bg);
}

.cta-strip-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-strip h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-white);
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.cta-strip p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    margin-top: 5px;
}

/* =====================================================================
   FOOTER — GOV.UK black footer
   ===================================================================== */
footer {
    background: var(--brand-bg-light);
    color: var(--brand-dark);
    padding: 35px 0 20px;
    border-top: 1px solid var(--brand-border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--brand-border);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-primary);
    display: inline-block;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 9px;
}

footer a {
    color: var(--brand-dark);
    text-decoration: underline;
    text-decoration-color: var(--brand-dark);
}

.footer-col ul li a {
    font-size: 15px;
}

footer a:hover {
    color: var(--brand-dark);
    text-decoration-color: var(--brand-dark);
    text-decoration-thickness: 2px;
}

.footer-col p {
    font-size: 14px;
    color: var(--brand-text-muted);
    line-height: 1.6;
    margin-bottom: 6px;
}

.footer-disclaimer {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--brand-primary);
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--brand-text-muted);
    line-height: 1.6;
}

.footer-disclaimer strong {
    color: var(--brand-dark);
}

.footer-bottom {
    padding-top: 15px;
    font-size: 12px;
    color: var(--brand-text-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.5;
}

/* =====================================================================
   CONTACT FORM — GOV.UK form style
   ===================================================================== */
.contact-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 5px;
    line-height: 1.25;
}

.form-group .hint {
    font-size: 15px;
    color: var(--brand-text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--brand-border-mid);
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    background: var(--brand-white);
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--brand-dark);
    line-height: 1.4;
    display: block;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input[type="file"] {
    border: 2px dashed var(--brand-text-muted);
    padding: 20px 15px;
    background: var(--brand-bg-light);
    cursor: pointer;
    font-size: 15px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px;
    border: 2px solid transparent;
}

.checkbox-group:hover {
    background: var(--brand-bg-light);
}

.checkbox-group input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: checkbox;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin-top: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--brand-dark);
    border: 1px solid var(--brand-border-mid);
    border-radius: var(--radius-sm);
}

.checkbox-group label {
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
    padding-top: 10px;
}

.form-success {
    background: #cce2d8;
    border-left: 5px solid var(--brand-success);
    padding: 15px 20px;
    font-size: 16px;
    color: #00703c;
    font-weight: 700;
    display: none;
    margin-bottom: 20px;
}

/* =====================================================================
   PAGE HEADER — GOV.UK blue header for inner pages
   ===================================================================== */
.page-header {
    background: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 100%);
    color: var(--brand-white);
    padding: 40px 0;
    border-bottom: 2px solid var(--brand-primary);
    box-shadow: var(--brand-shadow);
}

.page-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--brand-white);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.page-header p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    line-height: 1.4;
}

/* =====================================================================
   BREADCRUMB — exact GOV.UK style
   ===================================================================== */
.breadcrumb {
    max-width: 960px;
    margin: 0 auto;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--brand-text-muted);
    border-bottom: 1px solid var(--brand-border);
}

.breadcrumb a {
    color: var(--brand-link);
}

/* =====================================================================
   CONTENT BODY — inner page content
   ===================================================================== */
.content-body {
    max-width: 960px;
    margin: 0 auto;
    padding: 25px 15px 40px;
}

.content-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-top: 30px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--brand-primary);
    letter-spacing: -0.3px;
    line-height: 1.15;
}

.content-body h2:first-child {
    margin-top: 0;
}

.content-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 20px 0 8px;
    line-height: 1.25;
}

.content-body p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--brand-dark);
    margin-bottom: 15px;
}

.content-body ul {
    margin: 10px 0 20px 20px;
}

.content-body ul li {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--brand-dark);
}

/* =====================================================================
   CALLOUT BOXES — Premium Cards
   ===================================================================== */
.callout {
    background: var(--brand-bg-light);
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 18px 20px;
    margin: 24px 0;
    font-size: 15.5px;
    line-height: 1.6;
    box-shadow: var(--brand-shadow);
}

.callout.gold {
    border-left-color: var(--brand-accent);
    background: rgba(217, 119, 6, 0.05);
}

.callout.green {
    border-left-color: var(--brand-success);
    background: rgba(16, 185, 129, 0.05);
}

.callout.red {
    border-left-color: var(--brand-danger);
    background: rgba(239, 68, 68, 0.05);
}

/* =====================================================================
   TWO COLUMN LAYOUT
   ===================================================================== */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.sidebar-box {
    background: var(--brand-bg-light);
    border: 1px solid var(--brand-border);
    border-top: 5px solid var(--brand-primary);
    padding: 20px;
}

.sidebar-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-border);
    line-height: 1.25;
}

.sidebar-box p,
.sidebar-box li {
    font-size: 15px;
    color: var(--brand-text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

.sidebar-box a {
    color: var(--brand-link);
}

/* =====================================================================
   POLICY PAGES
   ===================================================================== */
.policy-content {
    max-width: 760px;
}

.policy-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 25px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--brand-primary);
    line-height: 1.15;
}

.policy-content p,
.policy-content li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.policy-content ul {
    margin: 8px 0 16px 20px;
}

/* =====================================================================
   INFO BLOCKS
   ===================================================================== */
.info-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.info-block {
    padding: 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-block h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-accent-bg);
    margin-bottom: 8px;
}

.info-block p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

/* =====================================================================
   TEAM CARDS
   ===================================================================== */
.team-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-top: 5px solid var(--brand-primary);
    padding: 22px;
    margin-bottom: 20px;
}

.team-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 5px;
}

.team-card .role {
    font-size: 14px;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 12px;
}

/* Job Cards Careers styling */
.job-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-top: 14px;
    margin-bottom: 6px;
    color: var(--brand-dark);
}

.job-card ul {
    margin: 6px 0 16px 20px !important;
}

.job-card ul li {
    font-size: 15px !important;
    line-height: 1.5;
    margin-bottom: 5px;
    color: var(--brand-text-muted);
}

/* =====================================================================
   NOTIFICATION / TAG COMPONENTS
   ===================================================================== */
.live-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--brand-primary);
    color: var(--brand-white);
}

.live-tag--yellow {
    background: var(--brand-accent-bg);
    color: var(--brand-dark);
}

.live-tag--green {
    background: var(--brand-success);
    color: var(--brand-white);
}

/* =====================================================================
   PHASE BANNER (GOV.UK style, shown under nav)
   ===================================================================== */
.phase-banner {
    border-bottom: 1px solid var(--brand-border);
    padding: 6px 0;
}

.phase-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
    font-size: 14px;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}



/* =====================================================================
   HAMBURGER BUTTON (hidden on desktop, visible on mobile)
   ===================================================================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--brand-white);
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    margin: 5px 0;
}

/* Animate to X when open */
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================================
   RESPONSIVE â€” comprehensive mobile-first
   ===================================================================== */

/* â”€â”€ 1024px â€” tablet landscape â”€â”€ */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 38px;
    }

    .section-lead {
        font-size: 17px;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* â”€â”€ 768px â€” tablet portrait â”€â”€ */
@media (max-width: 768px) {

    /* Header: keep logo + toggle on one line */
    .header-inner {
        padding: 12px 16px;
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
    }

    .header-info {
        display: none;
    }

    /* hide address on small screens */
    .logo-name {
        font-size: 22px;
    }

    .logo-sub {
        font-size: 12px;
    }

    /* Hamburger visible */
    .nav-toggle {
        display: flex;
        flex-direction: column;
    }

    /* Nav: hidden drawer that slides down */
    nav {
        position: relative;
        overflow: hidden;
    }

    .nav-inner {
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        padding: 0;
        gap: 0;
    }

    .nav-inner.open {
        max-height: 600px;
        /* tall enough for all links */
    }

    nav a {
        font-size: 15px;
        font-weight: 600;
        padding: 13px 18px;
        margin: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--brand-border);
        width: 100%;
        justify-content: flex-start;
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav a.active {
        background: rgba(37, 99, 235, 0.08);
        border-left: 3px solid var(--brand-primary);
    }

    /* Hero */
    .hero {
        padding: 40px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-image-side {
        display: none;
    }

    .hero h1 {
        font-size: 30px;
        letter-spacing: -0.5px;
    }

    .hero h1 span {
        font-size: 13px;
    }

    .hero-sub {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        font-size: 15px;
    }

    /* Trust box */
    .trust-box {
        margin-top: 16px;
    }

    /* Layouts */
    .two-col {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-blocks {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    /* CTA strip */
    .cta-strip-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .btn-dark {
        width: 100%;
        text-align: center;
        font-size: 15px;
    }

    /* Typography */
    h2.section-title {
        font-size: 22px;
    }

    .section-lead {
        font-size: 16px;
    }

    .page-header {
        padding: 28px 0;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .page-header p {
        font-size: 15px;
    }

    .content-body h2 {
        font-size: 20px;
    }

    .content-body p,
    .content-body ul li {
        font-size: 15.5px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Sidebar boxes stack under main content */
    .sidebar-box {
        margin-top: 12px;
    }
}

/* â”€â”€ 480px â€” mobile portrait â”€â”€ */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .header-inner {
        padding: 10px 14px;
    }

    .logo-name {
        font-size: 20px;
    }

    .logo-sub {
        display: none;
    }

    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-btns {
        gap: 8px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btn-primary,
    .btn-dark,
    .btn-calendly {
        font-size: 15px;
        padding: 12px 16px;
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 24px 0;
    }

    h2.section-title {
        font-size: 20px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-header p {
        font-size: 14px;
    }

    .content-body {
        padding: 18px 14px 30px;
    }

    .content-body h2 {
        font-size: 19px;
    }

    .content-body p,
    .content-body ul li {
        font-size: 15px;
    }

    .callout {
        padding: 14px 16px;
        font-size: 14.5px;
    }

    /* Contact form full width */
    .contact-form {
        max-width: 100%;
    }

    .form-group label {
        font-size: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 15px;
        padding: 10px 12px;
    }

    /* Sidebar stacks cleanly */
    .two-col {
        gap: 16px;
    }

    .sidebar-box {
        padding: 16px 14px;
    }

    /* Footer tidy */
    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }

    /* Modal */
    .modal-content {
        padding: 20px 14px 20px;
        border-radius: var(--radius-md);
    }

    .modal-heading {
        font-size: 20px;
    }

    .wizard-opt-btn {
        padding: 14px 16px;
    }

    .btn-modal {
        font-size: 15px;
        padding: 11px 16px;
    }

    .modal-body-question {
        font-size: 16px;
    }

    .contact-block-box {
        padding: 14px 12px;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* â”€â”€ 380px â€” very small phones â”€â”€ */
@media (max-width: 380px) {
    .logo-name {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 22px;
    }

    nav a {
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* =====================================================================
   TAX REFUND WIZARD MODAL STYLES
   ===================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    /* Modern blue tint backdrop */
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 45px 30px 30px 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.25s ease-in-out;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    border: none;
    background: transparent;
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    color: var(--brand-text-muted);
    line-height: 1;
    padding: 5px;
    transition: color 0.15s ease;
}

.modal-close:hover {
    color: var(--brand-dark);
}

.modal-close:focus {
    outline: 3px solid var(--brand-focus);
    background: var(--brand-focus);
    color: var(--brand-focus-text);
}

/* Wizard Steps */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeInStep 0.25s ease-in-out;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-heading {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--brand-dark);
    border-bottom: 3px solid var(--brand-primary);
    padding-bottom: 8px;
    padding-right: 35px;
    /* Prevent overlap with close button */
}

/* Option Buttons in Step 1 */
.wizard-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wizard-opt-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 16px 20px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    background: var(--brand-bg-light);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    width: 100%;
    font-family: inherit;
}

.wizard-opt-btn:hover {
    border-color: rgba(37, 99, 235, 0.2);
    background: #ffffff;
    box-shadow: var(--brand-shadow-lg);
}

.wizard-opt-btn:focus {
    outline: 3px solid var(--brand-focus);
    outline-offset: -2px;
    background: var(--brand-white);
    border-color: var(--brand-dark);
}

.opt-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 5px;
}

.opt-desc {
    font-size: 13.5px;
    color: var(--brand-text-muted);
    line-height: 1.4;
}

/* Yes/No Question and Buttons */
.modal-body-question {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--brand-dark);
    margin: 20px 0;
}

.wizard-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-modal {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--brand-white);
    font-family: inherit;
    transition: background 0.15s, opacity 0.15s, transform 0.1s;
    text-align: center;
}

.btn-yes {
    background: var(--brand-success);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.15);
}

.btn-yes:hover {
    background: #005a30;
}

.btn-yes:focus {
    outline: 3px solid var(--brand-focus);
    box-shadow: inset 0 0 0 2px var(--brand-dark);
}

.btn-no {
    background: var(--brand-danger);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.15);
}

.btn-no:hover {
    background: #b02713;
}

.btn-no:focus {
    outline: 3px solid var(--brand-focus);
    box-shadow: inset 0 0 0 2px var(--brand-dark);
}

.btn-modal:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* Back Link styling */
.wizard-back-container {
    margin-top: 25px;
    border-top: 1px solid var(--brand-border);
    padding-top: 15px;
}

.modal-back-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-text-muted);
    text-decoration: underline;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.modal-back-link:hover {
    color: var(--brand-dark);
}

.modal-back-link:focus {
    background: var(--brand-focus);
    color: var(--brand-focus-text);
    outline: none;
}

/* Panels for results */
.modal-panel {
    padding: 22px;
    text-align: center;
    margin-bottom: 20px;
    border: 3px solid transparent;
    margin-top: 10px;
    /* Space out from close button */
}

.modal-panel--confirmation {
    background-color: #e6f2eb;
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--brand-success);
}

.modal-panel--info {
    background-color: #eaf3fa;
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--brand-primary);
}

.modal-panel--cis {
    background-color: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: var(--brand-dark);
}

.modal-panel__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.1;
}

.modal-panel__body {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* Contact Block Inside Results */
.contact-block-box {
    background: var(--brand-bg-light);
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--brand-shadow);
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--brand-border);
    padding-bottom: 8px;
    font-size: 14.5px;
}

.contact-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-label {
    font-weight: 700;
    color: var(--brand-dark);
}

.contact-val {
    font-weight: 600;
    color: var(--brand-link);
    text-decoration: underline;
}

.contact-val:hover {
    color: var(--brand-primary);
}

/* WhatsApp block specific */
.whatsapp-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.whatsapp-link,
.whatsapp-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #00703c;
    color: #ffffff !important;
    padding: 6px 12px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 0 #002d18;
    transition: background-color 0.15s, transform 0.1s;
}

.whatsapp-link:hover,
.whatsapp-link:visited:hover {
    background-color: #005a30;
    color: #ffffff !important;
    text-decoration: none !important;
}

.whatsapp-link:active {
    transform: translateY(1px);
    box-shadow: none;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--brand-border);
    margin-top: 4px;
}

.whatsapp-qr-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.qr-hint {
    font-size: 12px;
    color: var(--brand-text-muted);
    font-weight: 500;
}

/* modal 480px rules merged into main @media(max-width:480px) above */

/* =====================================================================
   CALENDLY BUTTON STYLING
   ===================================================================== */
.btn-calendly {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0069ff 0%, #0053cc 100%);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    margin: 18px 0;
    box-shadow: 0 4px 10px rgba(0, 105, 255, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-calendly:hover {
    background: linear-gradient(135deg, #0053cc 0%, #003fa3 100%);
    box-shadow: 0 6px 14px rgba(0, 105, 255, 0.35);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-calendly:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 105, 255, 0.15);
}

.btn-calendly:focus {
    outline: 3px solid var(--brand-focus);
    outline-offset: 1px;
}

/* =====================================================================
   OFFICE LOCATIONS SECTION & CARDS
   ===================================================================== */
.office-locations-container {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--brand-border);
}

.office-locations-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.office-locations-header p {
    color: var(--brand-text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.office-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-top: 4px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--brand-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.office-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--brand-shadow-lg);
}

.office-card.head-office {
    border-top-color: var(--brand-primary);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.office-card.branch-office {
    border-top-color: #0284c7;
}

.office-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.office-badge.head {
    background: #eff6ff;
    color: var(--brand-primary);
    border: 1px solid #bfdbfe;
}

.office-badge.branch {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.office-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 4px;
}

.office-card .office-company {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.office-card address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    color: var(--brand-text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.office-card-footer {
    padding-top: 12px;
    border-top: 1px solid var(--brand-border);
    font-size: 13px;
    color: var(--brand-text-muted);
}

/* Sidebar office items */
.sidebar-office-list {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--brand-border);
}

.sidebar-office-item {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-left: 3px solid var(--brand-primary);
    border-radius: var(--radius-sm);
}

.sidebar-office-item:last-child {
    margin-bottom: 0;
}

.sidebar-office-item.branch {
    border-left-color: #0284c7;
}

.sidebar-office-item .office-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-primary);
    display: block;
    margin-bottom: 2px;
}

.sidebar-office-item.branch .office-tag {
    color: #0284c7;
}

.sidebar-office-item strong {
    font-size: 13px;
    color: var(--brand-dark);
    display: block;
    margin-bottom: 2px;
}

.sidebar-office-item address {
    font-style: normal;
    font-size: 12.5px;
    color: var(--brand-text-muted);
    line-height: 1.4;
}

/* =====================================================================
   SEARCH & APPLY PORTAL (HMRC / Civil Service Style Careers)
   ===================================================================== */
:root {
    --gds-teal: #2563eb;
    --gds-teal-hover: #1d4ed8;
    --gds-teal-light: #eff6ff;
    --gds-black: #0f172a;
    --gds-grey-border: #d4d8da;
    --gds-grey-light: #f8fafc;
    --gds-grey-bg: #f8fafc;
    --gds-text: #0b0c0c;
    --gds-muted: #64748b;
}

.search-apply-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

.search-apply-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--gds-black);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

/* Top Search Bar Row */
.job-search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    align-items: stretch;
}

.job-search-input-wrap {
    flex: 1;
    position: relative;
}

.job-search-input {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    font-size: 16px;
    border: 1px solid var(--gds-grey-border);
    border-radius: 2px;
    color: var(--gds-black);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.job-search-input:focus {
    border-color: var(--gds-teal);
    box-shadow: 0 0 0 3px rgba(0, 112, 90, 0.25);
}

.job-search-btn {
    height: 48px;
    padding: 0 28px;
    background: var(--gds-teal);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.job-search-btn:hover {
    background: var(--gds-teal-hover);
}

.job-near-btn {
    height: 48px;
    padding: 0 24px;
    background: var(--gds-black);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.job-near-btn:hover {
    background: #2b2b2b;
}

/* 2-Column Main Portal Layout */
.search-apply-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar Filters */
.job-filters-sidebar {
    background: #fff;
}

.filter-group {
    border-top: 1px solid var(--gds-grey-border);
    padding: 18px 0;
}

.filter-group:first-child {
    border-top: none;
    padding-top: 0;
}

.filter-group-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gds-black);
    margin-bottom: 12px;
}

.filter-search-box {
    margin-bottom: 12px;
}

.filter-search-input {
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid var(--gds-grey-border);
    border-radius: 2px;
    color: var(--gds-black);
    outline: none;
}

.filter-search-input:focus {
    border-color: var(--gds-teal);
}

.filter-checkbox-list {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox-list::-webkit-scrollbar {
    width: 5px;
}

.filter-checkbox-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--gds-black);
    cursor: pointer;
    user-select: none;
}

.filter-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

.filter-item-left input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--gds-teal);
}

.filter-item-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.filter-count-badge {
    background: var(--gds-teal);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 2px;
    margin-left: 8px;
    flex-shrink: 0;
}

.filter-clear-btn {
    background: none;
    border: none;
    color: var(--gds-teal);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
}

.filter-clear-btn:hover {
    color: var(--gds-teal-hover);
}

/* Results Content Area */
.job-results-area {
    min-height: 400px;
}

.job-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.job-results-count {
    font-size: 15px;
    color: var(--gds-muted);
}

.job-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* Job Card matching screenshot */
.job-card-portal {
    background: #ffffff;
    border: 1px solid var(--gds-grey-border);
    border-radius: 4px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.job-card-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #b1b4b6;
}

.job-card-portal-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--gds-teal);
    margin-bottom: 14px;
    line-height: 1.3;
}

.job-card-locations {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-card-location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gds-black);
}

.location-nav-arrow {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.job-card-department {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gds-black);
    margin-bottom: 12px;
}

.job-card-types {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.job-card-type-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gds-black);
}

.show-more-toggle {
    background: none;
    border: none;
    color: var(--gds-teal);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.show-more-toggle:hover {
    text-decoration: underline;
}

.job-card-snippet {
    font-size: 14px;
    line-height: 1.55;
    color: #444;
    margin-top: 8px;
    margin-bottom: 18px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.job-card-snippet strong {
    color: var(--gds-black);
    font-weight: 600;
}

.job-card-footer {
    margin-top: auto;
    padding-top: 12px;
}

.job-read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gds-teal);
    text-decoration: none;
    transition: color 0.15s, transform 0.15s;
}

.job-read-more-link:hover {
    color: var(--gds-teal-hover);
    text-decoration: underline;
    transform: translateX(2px);
}

/* Floating Join Our Talent Network Button */
.talent-network-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--gds-teal);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.15s;
}

.talent-network-floating-btn:hover {
    background: var(--gds-teal-hover);
    transform: translateY(-2px);
}

/* Talent Network Modal */
.talent-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 12, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.talent-modal-overlay.active {
    display: flex;
}

.talent-modal-dialog {
    background: #fff;
    width: 100%;
    max-width: 580px;
    border-radius: 4px;
    padding: 32px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.talent-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.talent-modal-close:hover {
    color: #000;
}

/* Responsive styles */
@media (max-width: 900px) {
    .search-apply-layout {
        grid-template-columns: 1fr;
    }

    .job-cards-grid {
        grid-template-columns: 1fr;
    }

    .job-search-bar {
        flex-direction: column;
    }

    .search-apply-title {
        font-size: 28px;
    }
}

/* =====================================================================
   DEDICATED JOB DETAILS PAGE STYLING
   ===================================================================== */
.job-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px 80px;
}

.job-detail-hero {
    background: #0f172a;
    color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.job-detail-hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.job-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.detail-pill.highlight {
    background: var(--gds-teal);
    color: #ffffff;
}

.job-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

.job-detail-main {
    background: #ffffff;
}

.job-detail-section {
    margin-bottom: 32px;
}

.job-detail-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gds-black);
    border-bottom: 2px solid #eef0f2;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.job-detail-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #2b2b2b;
    margin-bottom: 14px;
}

.job-detail-section ul {
    margin: 12px 0 20px 24px;
}

.job-detail-section ul li {
    font-size: 15px;
    line-height: 1.65;
    color: #2b2b2b;
    margin-bottom: 8px;
}

.alert-highlight-box {
    background: #eef7f4;
    border-left: 4px solid var(--gds-teal);
    padding: 18px 20px;
    border-radius: 0 4px 4px 0;
    margin: 20px 0;
}

.alert-highlight-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gds-teal);
    margin-bottom: 6px;
}

.alert-highlight-box p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #0b0c0c;
    margin: 0;
}

.branch-location-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 14px;
}

.branch-location-card strong {
    color: var(--gds-teal);
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 15px;
}

.rates-table th,
.rates-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.rates-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}

/* Sidebar in detail page */
.job-detail-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-apply-card {
    background: #ffffff;
    border: 1px solid var(--gds-grey-border);
    border-top: 4px solid var(--gds-teal);
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-apply-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gds-black);
    margin-bottom: 14px;
}

.btn-apply-full {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: var(--gds-teal);
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-apply-full:hover {
    background: var(--gds-teal-hover);
}

.quick-facts-table {
    width: 100%;
    font-size: 13.5px;
    border-collapse: collapse;
}

.quick-facts-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.quick-facts-table td:first-child {
    font-weight: 600;
    color: #64748b;
    width: 40%;
}

@media (max-width: 900px) {
    .job-detail-layout {
        grid-template-columns: 1fr;
    }

    .job-detail-sidebar {
        position: static;
    }
}

/* =====================================================================
   SEO ENHANCEMENTS — LOCATION HUBS, FAQS, & GUIDES
   ===================================================================== */
.location-hero {
    background: linear-gradient(135deg, #0b0f19 0%, #1e293b 100%);
    color: #ffffff;
    padding: 60px 20px;
    border-bottom: 3px solid #2563eb;
}
.location-hero-inner {
    max-width: 1040px;
    margin: 0 auto;
}
.location-hero h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
}
.location-hero p.lead {
    font-size: 19px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 780px;
    margin-bottom: 24px;
}
.location-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.loc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
}
.office-details-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}
.office-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 16px;
}
.office-detail-item strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.office-detail-item p {
    color: #334155;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}
/* Accessible FAQ Accordions */
.seo-faq-group {
    margin-top: 36px;
}
details.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}
details.faq-item[open] {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
summary.faq-question {
    padding: 18px 20px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
}
summary.faq-question::-webkit-details-marker {
    display: none;
}
summary.faq-question::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: #2563eb;
    transition: transform 0.2s ease;
}
details[open] summary.faq-question::after {
    content: '−';
}
.faq-answer {
    padding: 16px 20px 20px;
    font-size: 15.5px;
    line-height: 1.7;
    color: #334155;
    border-top: 1px solid #f1f5f9;
}
/* Guides Grid & Cards */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 32px 0 48px;
}
.guide-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.guide-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}
.guide-card-tag {
    display: inline-block;
    align-self: flex-start;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.guide-card h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 10px;
}
.guide-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 20px;
}
.guide-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 13.5px;
    color: #64748b;
}
.author-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 40px 0;
    display: flex;
    gap: 16px;
    align-items: center;
}
.author-box-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.author-box-content p {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 768px) {
    .location-hero h1 { font-size: 28px; }
    .location-hero p.lead { font-size: 16px; }
    .guides-grid { grid-template-columns: 1fr; }
}