@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;500;800&family=Poppins:wght@300;400;600;800&family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&family=DM+Sans:wght@300;400;500;700&family=Outfit:wght@300;400;600;800&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,700;1,9..144,400&display=swap');

/* CSS variables and default colours for tenant themes */
:root {
    --brand-primary:   #1e3a8a;
    --brand-secondary: #1e3a8a;
    --brand-bg:        #ffffff;
    --brand-font:      'Inter', sans-serif;
    --brand-hero-text: var(--brand-computed-hero-text, #ffffff);
    --brand-hero-bg:   var(--brand-primary);  /* alias — keeps old references working */
    --brand-computed-hero-text:      #ffffff;  /* overridden by hero-contrast.js */
    --brand-computed-secondary-text: #ffffff;  /* overridden by hero-contrast.js */
}

/* Executive — corporate navy */
.theme-executive {
    --brand-primary:   #0f172a;
    --brand-secondary: #0f172a;
    --brand-bg:        #ffffff;
    --brand-font:      'Inter', sans-serif;
    --brand-hero-text: var(--brand-computed-hero-text, #ffffff);
    --brand-hero-bg:   var(--brand-primary);
}

/* Executive — restrained, authoritative, zero decoration */
.theme-executive .navbar {
    border-bottom: 2px solid var(--brand-primary);
    background: #ffffff;
}

.theme-executive .hero-section {
    padding: 5rem 0;
}

.theme-executive .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
}

.theme-executive .hero-text {
    font-size: 1.1rem;
    line-height: 1.75;
    opacity: 0.85;
    max-width: 520px;
}

/* Executive job cards — sharp corners, strong left border accent */
.theme-executive .job-card,
.theme-executive .job-card-preview {
    border-radius: 0;
    border-left: 3px solid var(--brand-primary);
    border-top: 1px solid rgba(0,0,0,0.08);
    border-right: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.theme-executive .job-card:hover,
.theme-executive .job-card-preview:hover {
    transform: translateX(3px) translateY(-2px);
}

/* Executive highlight cards — outlined, not filled */
.theme-executive .why-work-card {
    background-color: transparent;
    border: 2px solid var(--brand-primary);
    border-radius: 0;
}

.theme-executive .why-work-card.why-work-card,
.theme-executive .why-work-card.why-work-card h3,
.theme-executive .why-work-card.why-work-card p {
    color: var(--brand-secondary);
}

/* Startup — bold modern */
.theme-startup {
    --brand-primary:   #1c1917;
    --brand-secondary: #1c1917;
    --brand-bg:        #ffffff;
    --brand-font:      'Plus Jakarta Sans', sans-serif;
    --brand-hero-text: var(--brand-computed-hero-text, #ffffff);
    --brand-hero-bg:   var(--brand-primary);
}

/* Startup — energetic, oversized type, punchy accents */
.theme-startup .navbar {
    background: #ffffff;
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.theme-startup .hero-section {
    padding: 5rem 0 4rem;
}

/* Oversized stacked headline — the personality comes from scale */
.theme-startup .hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -2px;
}

.theme-startup .hero-text {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.8;
    max-width: 480px;
    font-weight: 300;
}

/* Startup — pill buttons to contrast the sharp headline */
.theme-startup .hero-actions .btn {
    border-radius: 100px;
    padding-left: 2rem;
    padding-right: 2rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Startup job cards — rounded, card-like, with hover lift */
.theme-startup .job-card,
.theme-startup .job-card-preview {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.theme-startup .job-card:hover,
.theme-startup .job-card-preview:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
    transform: translateY(-4px);
    border-color: transparent;
}

/* Startup highlight cards — pill shape, brand fill */
.theme-startup .why-work-card {
    border-radius: 16px;
    background-color: var(--brand-secondary);
}

/* Startup — image gets a rounded clip to match card style */
.theme-startup .hero-img-styled {
    border-radius: 16px;
}

/* Impact — full-bleed brand-colour hero, no image required */
.theme-impact {
    --brand-primary:   #e11d48;
    --brand-secondary: #9f1239;
    --brand-bg:        #ffffff;
    --brand-font:      'Inter', sans-serif;
    --brand-hero-text: var(--brand-computed-hero-text, #ffffff);
    --brand-hero-bg:   var(--brand-primary);
}

/* Minimal — clean, airy job board */
.theme-minimal {
    --brand-primary:   #1a1a1a;
    --brand-secondary: #1a1a1a;
    --brand-bg:        #f8f8f8;
    --brand-font:      'DM Sans', sans-serif;
    --brand-hero-text: var(--brand-computed-hero-text, #ffffff);
    --brand-hero-bg:   var(--brand-primary);
}

/* Bold — high contrast, cinematic */
.theme-bold {
    --brand-primary:   #0a0a0a;
    --brand-secondary: #0a0a0a;
    --brand-bg:        #ffffff;
    --brand-font:      'Poppins', sans-serif;
    --brand-hero-text: var(--brand-computed-hero-text, #ffffff);
    --brand-hero-bg:   var(--brand-primary);
}

/* wrapper - resets colours from. picker  */

.agency-site {
    background-color: var(--brand-bg);
    font-family: var(--brand-font);
    color: var(--brand-secondary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* hero section */

.agency-site .hero-section {
    background-color: var(--brand-primary) !important;
    color: var(--brand-hero-text);
}

.agency-site .hero-section h1,
.agency-site .hero-section h2,
.agency-site .hero-section h3,
.agency-site .hero-section h4,
.agency-site .hero-section h5,
.agency-site .hero-section h6,
.agency-site .hero-section p,
.agency-site .hero-section .lead,
.agency-site .hero-section .hero-title,
.agency-site .hero-section .hero-text,
.agency-site .hero-section .display-3 {
    color: var(--brand-hero-text);
}

.agency-site .hero-section .btn-primary {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: var(--brand-bg);
}
.agency-site .hero-section .btn-primary:hover {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    opacity: 0.88;
}

.agency-site .hero-section .btn-outline-dark,
.agency-site .hero-section .btn-outline-secondary {
    border-color: var(--brand-hero-text);
    color: var(--brand-hero-text);
    background-color: transparent;
}
.agency-site .hero-section .btn-outline-dark:hover,
.agency-site .hero-section .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--brand-hero-text);
}


/* Homepage text */

.agency-site section:not(.hero-section) h1,
.agency-site section:not(.hero-section) h2,
.agency-site section:not(.hero-section) h3,
.agency-site section:not(.hero-section) h4,
.agency-site section:not(.hero-section) h5,
.agency-site section:not(.hero-section) h6,
.agency-site section:not(.hero-section) p,
.agency-site section:not(.hero-section) li,
.agency-site section:not(.hero-section) .lead,
.agency-site .card h1,
.agency-site .card h2,
.agency-site .card h3,
.agency-site .card h4,
.agency-site .card p {
    color: var(--brand-secondary);
}


/* buttons non-hero */

.agency-site .btn-primary {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: var(--brand-bg);
}
.agency-site .btn-primary:hover {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    opacity: 0.88;
}

.agency-site .btn-outline-primary {
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
    background-color: transparent;
}
.agency-site .btn-outline-primary:hover {
    background-color: var(--brand-secondary);
    color: var(--brand-bg);
}



/* hero buttons */

.agency-site .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}


/* navbar */

.agency-site .navbar {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.agency-site .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--brand-secondary) !important;
    gap: 0.6rem;
}

.agency-site .nav-link {
    color: var(--brand-secondary);
    opacity: 0.75;
    transition: opacity 0.2s ease;
}
.agency-site .nav-link:hover {
    opacity: 1;
    color: var(--brand-secondary);
}


/* pics */

.hero-img-styled, .about-image, .preview-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.agency-site .about-header {
    padding: 4rem 0 2rem;
}

.agency-site .about-content-section {
    padding: 3rem 0 5rem;
}

.agency-site .page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-secondary);
    letter-spacing: -0.5px;
}

.agency-site .lead-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--brand-secondary);
    margin-bottom: 2rem;
}

.agency-site .about-cta {
    margin-top: 2rem;
}

.agency-site .about-image-placeholder {
    width: 100%;
    min-height: 300px;
    background-color: color-mix(in srgb, var(--brand-primary) 8%, var(--brand-bg));
    border: 1px solid color-mix(in srgb, var(--brand-primary) 20%, transparent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agency-site .about-image-placeholder .placeholder-text {
    color: var(--brand-secondary);
    opacity: 0.4;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Impact about page — sharp corners match the template's no-decoration aesthetic */
.theme-impact .about-image-placeholder {
    border-radius: 0;
    border-color: color-mix(in srgb, var(--brand-primary) 30%, transparent);
}


/* jobs */

.job-card, .job-card-preview {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    background: var(--brand-bg);
}

.job-card:hover, .job-card-preview:hover {
    border-color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Impact job cards — sharp, left-accent border like Executive but stronger */
.theme-impact .job-card,
.theme-impact .job-card-preview {
    border-radius: 0;
    border-left: 4px solid var(--brand-primary);
    border-top: 1px solid rgba(0,0,0,0.07);
    border-right: 1px solid rgba(0,0,0,0.07);
    border-bottom: 1px solid rgba(0,0,0,0.07);
}
.theme-impact .job-card:hover,
.theme-impact .job-card-preview:hover {
    border-left-color: var(--brand-secondary);
    transform: translateX(4px) translateY(-2px);
}

/* Impact card-brand */
.theme-impact .agency-site .card-brand,
.theme-impact.agency-site .card-brand {
    border-radius: 0;
    border-color: color-mix(in srgb, var(--brand-primary) 20%, transparent);
}
/* Card headings */
.agency-site .job-card h3,
.agency-site .job-card h4,
.agency-site .job-card-preview h3,
.agency-site .job-card-preview h4 {
    color: var(--brand-secondary);
}

/* card-brand — job list cards and job detail card */
.agency-site .card-brand {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--sharp-radius, 2px);
    transition: all 0.3s ease;
    background: var(--brand-bg);
}

.agency-site .card-brand:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}



/* jobs page */

.agency-site .job-description-content {
    padding-bottom: 1rem;
}

.agency-site .job-main-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--brand-secondary);
}


.agency-site .muted-text {
    color: var(--brand-secondary) !important;
    opacity: 0.6;
}


/* Why Work With Us cards — specificity (0,3,0) beats section:not(.hero-section) p at (0,2,2) */

.agency-site .why-work-card {
    background-color: var(--brand-secondary);
}

.agency-site .why-work-card.why-work-card,
.agency-site .why-work-card.why-work-card h3,
.agency-site .why-work-card.why-work-card p {
    color: var(--brand-computed-secondary-text, #ffffff);
}


/* PREVIEW*/

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--brand-bg); }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

#preview-window, .preview-container, .preview-frame {
    height: calc(100vh - 120px);
    overflow-y: auto;
    display: block;
}

/* Links */

.agency-site a:not(.btn):not(.nav-link):not(.navbar-brand):not(.social-link-item) {
    color: var(--brand-secondary);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--brand-secondary) 35%, transparent);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}
.agency-site a:not(.btn):not(.nav-link):not(.navbar-brand):not(.social-link-item):hover {
    color: var(--brand-secondary);
    text-decoration-color: var(--brand-secondary);
}

.footer-contact-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.footer-contact-link:hover {
    opacity: 1;
    color: inherit;
}

/* Footer Heading Styling */
.footer-heading {
    font-size: 0.875rem;  
    font-weight: 700;          
    text-transform: uppercase; 
    letter-spacing: 1px;     
    margin-bottom: 1.5rem;   
    color: inherit;           
}

/* Pillar & Post branding link — shown on Eco plan, hidden on Agency/Pro */
.pp-branding-link {
    font-size: 0.7rem;
    opacity: 0.5;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.pp-branding-link:hover {
    opacity: 0.8;
    color: inherit;
    text-decoration: none;
}


/* Footer — uses brand variables so tenant colour choices are respected.
   Bootstrap's bg-white and text-muted are overridden here. */

.agency-site footer {
    background-color: var(--brand-bg);
    color: var(--brand-secondary);
    border-top-color: color-mix(in srgb, var(--brand-primary) 15%, transparent) !important;
}

.agency-site footer .text-muted,
.agency-site footer .small,
.agency-site footer p,
.agency-site footer li,
.agency-site footer a {
    color: var(--brand-secondary) !important;
    opacity: 0.75;
}

.agency-site footer a:hover {
    opacity: 1;
}

.agency-site footer .footer-heading {
    color: var(--brand-secondary) !important;
    opacity: 1;
}


/* responsive */

@media (max-width: 768px) {
    .agency-site {
        padding-bottom: 150px;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .agency-site .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1.25rem;
    }
    .agency-site .btn-lg {
        font-size: 0.95rem;
        padding: 0.6rem 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .agency-site .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.25rem;
    }
    .agency-site .btn-lg {
        font-size: 1rem;
        padding: 0.65rem 1.75rem;
    }
}

/* Mobile-specific Hero Padding */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 1.5rem !important; 
        background-color: var(--brand-primary);
        text-align: center;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
/* ------------------------------------------------------------------ */
/* MINIMAL template overrides                                          */
/* ------------------------------------------------------------------ */

/* Minimal has no hero section — strapline sits in a simple header band */
.theme-minimal .hero-section {
    padding: 3rem 0 2rem;
    background-color: var(--brand-primary);
}

.theme-minimal .hero-image-wrapper {
    display: none;
}

/* Large inverted CTA button for the Minimal homepage hero.
   Background and text use brand variables so tenant colour
   choices are respected — no hardcoded colours. */
.theme-minimal .btn-minimal-cta {
    background-color: var(--brand-hero-text);
    color: var(--brand-primary);
    border: 2px solid var(--brand-hero-text);
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 1rem 2rem;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-minimal .btn-minimal-cta:hover {
    background-color: transparent;
    color: var(--brand-hero-text);
}

/* CTA block sits below the hero on a brand-bg background,
   creating a clear visual break between the two sections */
.theme-minimal .minimal-cta-section {
    background-color: var(--brand-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

/* ------------------------------------------------------------------ */
/* BOLD template overrides                                             */
/* ------------------------------------------------------------------ */

/* Full-width hero breaks out of Bootstrap container */
.theme-bold .hero-section {
    padding: 0;
    overflow: hidden;
}

.theme-bold .hero-bleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--brand-primary);
}

.theme-bold .hero-bleed .hero-content {
    padding: 4rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .theme-bold .hero-bleed {
        min-height: 50vh;
    }
    .theme-bold .hero-bleed .hero-content {
        padding: 2.5rem 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .theme-bold .hero-bleed {
        min-height: 60vh;
    }
    .theme-bold .hero-bleed .hero-content {
        padding: 3rem 2rem;
    }
}

.theme-bold .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
}

.theme-bold .hero-img-styled {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    border-radius: 0;
    max-height: none;
}

/* Semi-transparent overlay ensures text is always readable over the image */
.theme-bold .hero-bleed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.45) 55%,
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
}

/* hero-content sits above the overlay */
.theme-bold .hero-content {
    position: relative;
    z-index: 1;
}

/* Dark overlay guarantees legibility — force white text regardless of primary colour */
.theme-bold .hero-title,
.theme-bold .hero-text,
.theme-bold .hero-section .btn-outline-dark,
.theme-bold .hero-section .btn-outline-secondary {
    color: #ffffff !important;
}

.theme-bold .hero-section .btn-outline-dark,
.theme-bold .hero-section .btn-outline-secondary {
    border-color: #ffffff !important;
}

/* Stronger text shadow for legibility on busy images */
.theme-bold .hero-title,
.theme-bold .hero-text {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------------ */
/* PREVIEW BLANK STATE                                                 */
/* ------------------------------------------------------------------ */

/* Shown in the editor preview iframe when a page is toggled off */
.preview-blank-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    opacity: 0.4;
}

.preview-blank-label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.preview-blank-hint {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* JOB SEARCH (TICKET-036)                                             */
/* ------------------------------------------------------------------ */

/* Hidden state used by job-search.js to show/hide cards and the      */
/* no-results message — avoids inline styles per project convention.   */
.job-search-hidden {
    display: none;
}
/* ------------------------------------------------------------------ */
/* SPAM PROTECTION (TICKET-012)                                        */
/* ------------------------------------------------------------------ */

/* Honeypot field — hidden from real users, bots auto-fill it.        */
/* position:absolute + left:-9999px moves it off-screen without       */
/* display:none, which some bots detect and skip.                     */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* CLIENT BRANDING (TICKET-058)                                        */
/* ------------------------------------------------------------------ */

/* Client logo displayed on job detail page and job form editor */
.client-logo-img {
    max-height: 72px;
    max-width: 180px;
    object-fit: contain;
}

/* Client logo thumbnail in job form editor (slightly taller) */
.client-logo-thumb {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

/* Client badge — top-right of job detail header */
.client-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--brand-border, #e1e8ed);
    border-radius: 8px;
    background: var(--brand-bg, #f8f9fa);
    max-width: 160px;
}

.client-badge-logo {
    max-height: 48px;
    max-width: 120px;
    object-fit: contain;
}

.client-badge-name {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-secondary, #627D98);
    text-align: right;
    line-height: 1.3;
}
/* ------------------------------------------------------------------ */
/* NAVBAR LOGO — moved from inline style in base_tenant.html           */
/* ------------------------------------------------------------------ */

.agency-site .navbar .navbar-logo {
    max-height: 40px;
}

/* ------------------------------------------------------------------ */
/* SINGLE-PAGE SCROLL TEMPLATES — shared classes                       */
/* (Flow, Drift, Scout, Pulse)                                         */
/* ------------------------------------------------------------------ */

/* Scroll reveal — base state (hidden, shifted down slightly) */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Revealed state — added by scroll-reveal.js or immediately on        */
/* Drift/Scout (no JS loaded) via the fallback rule below              */
.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Drift and Scout don't load scroll-reveal.js — show everything       */
/* immediately so the page never appears blank without JS              */
.theme-drift .reveal,
.theme-scout .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

/* Respect reduced motion — never animate regardless of template       */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Shared single-page section spacing */
.sp-body-section {
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.sp-body-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--brand-secondary);
}

.sp-about-section {
    background-color: color-mix(in srgb, var(--brand-primary) 4%, var(--brand-bg));
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 10%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.sp-about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--brand-secondary);
}

.sp-jobs-section {
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.sp-highlights-section {
    background-color: color-mix(in srgb, var(--brand-primary) 4%, var(--brand-bg));
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.sp-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--brand-secondary);
    margin-bottom: 1.5rem;
}

/* Single-page job preview cards */
.sp-job-card {
    border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
    border-radius: 6px;
    padding: 1.5rem;
    background: var(--brand-bg);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.sp-job-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

.sp-job-card h3 {
    color: var(--brand-secondary);
}

/* ------------------------------------------------------------------ */
/* FLOW template                                                        */
/* Clean, high-contrast, modern. DM Sans.                             */
/* ------------------------------------------------------------------ */

.theme-flow {
    --brand-primary:   #1d3557;
    --brand-secondary: #1d3557;
    --brand-bg:        #ffffff;
    --brand-font:      'DM Sans', sans-serif;
    --brand-hero-text: var(--brand-computed-hero-text, #ffffff);
    --brand-hero-bg:   var(--brand-primary);
}

.theme-flow .sp-hero-section {
    padding: 5rem 0 4rem;
}

.theme-flow .hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.theme-flow .hero-text {
    font-size: 1.1rem;
    line-height: 1.75;
    opacity: 0.85;
}

/* Flow — stagger reveal delays for a cascaded entrance */
.theme-flow .hero-content .hero-title  { transition-delay: 0s; }
.theme-flow .hero-content .hero-text   { transition-delay: 0.1s; }
.theme-flow .hero-content .hero-actions { transition-delay: 0.2s; }
.theme-flow .hero-image-wrapper        { transition-delay: 0.15s; }

/* Flow section dividers — strong horizontal rule */
.theme-flow .sp-about-section,
.theme-flow .sp-jobs-section,
.theme-flow .sp-highlights-section {
    border-top-width: 2px;
}

/* ------------------------------------------------------------------ */
/* DRIFT template                                                       */
/* Warm, editorial, generous whitespace. Playfair Display.            */
/* ------------------------------------------------------------------ */

.theme-drift {
    --brand-primary:   #4a7c59;
    --brand-secondary: #4a7c59;
    --brand-bg:        #f5f0e8;
    --brand-font:      'Playfair Display', serif;
    --brand-hero-text: var(--brand-computed-hero-text, #ffffff);
    --brand-hero-bg:   var(--brand-primary);
}

.theme-drift .sp-hero-section {
    padding: 6rem 0 5rem;
}

.theme-drift .hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
}

.theme-drift .hero-text {
    font-size: 1.1rem;
    line-height: 1.9;
    opacity: 0.9;
}

/* Drift — softer card borders */
.theme-drift .sp-job-card,
.theme-drift .why-work-card {
    border-radius: 10px;
}

.theme-drift .sp-about-section {
    background-color: color-mix(in srgb, var(--brand-primary) 6%, var(--brand-bg));
}

/* ------------------------------------------------------------------ */
/* SCOUT template                                                       */
/* Personal, consultant feel. Understated. Merriweather.              */
/* ------------------------------------------------------------------ */

.theme-scout {
    --brand-primary:   #2d2d2d;
    --brand-secondary: #2d2d2d;
    --brand-bg:        #f8f6f2;
    --brand-font:      'Merriweather', serif;
    --brand-hero-text: var(--brand-computed-hero-text, #ffffff);
    --brand-hero-bg:   var(--brand-primary);
}

/* Scout — minimal borders, feels handcrafted */
.theme-scout .sp-job-card {
    border-left-width: 3px;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    padding-left: 1.25rem;
    background: transparent;
}

.theme-scout .sp-job-card:hover {
    transform: translateX(4px);
    box-shadow: none;
    border-color: var(--brand-primary);
}

.theme-scout .sp-about-section {
    background-color: var(--brand-bg);
    border-top: 2px solid var(--brand-primary);
}

/* Scout — section titles feel more personal */
.theme-scout .sp-section-title {
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

/* Scout — full-bleed cinematic hero (same technique as Bold) */
.theme-scout .sp-hero-section {
    padding: 0;
    overflow: hidden;
}

.theme-scout .sp-scout-bleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--brand-primary);
    /* Force white text — dark overlay guarantees legibility regardless of primary */
    --brand-computed-hero-text: #ffffff;
}

/* Dark overlay guarantees legibility — force white text regardless of primary colour */
.theme-scout .sp-scout-hero-content .hero-title,
.theme-scout .sp-scout-hero-content .hero-text,
.theme-scout .sp-scout-hero-content p {
    color: #ffffff !important;
}

.theme-scout .sp-scout-hero-content .btn-outline-light {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.theme-scout .sp-scout-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    border-radius: 0;
    max-height: none;
}

/* Dark gradient overlay — text always readable over the image */
.theme-scout .sp-scout-bleed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.50) 55%,
        rgba(0, 0, 0, 0.20) 100%
    );
    pointer-events: none;
}

.theme-scout .sp-scout-hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    max-width: 680px;
    margin: 0 auto;
}

.theme-scout .hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-computed-hero-text, #ffffff);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.theme-scout .hero-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--brand-computed-hero-text, #ffffff);
    opacity: 0.9;
}

@media (max-width: 767.98px) {
    .theme-scout .sp-scout-bleed {
        min-height: 55vh;
    }
    .theme-scout .sp-scout-hero-content {
        padding: 2.5rem 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .theme-scout .sp-scout-bleed {
        min-height: 65vh;
    }
}

/* ------------------------------------------------------------------ */
/* IMPACT template                                                      */
/* Full-bleed brand-colour hero. No image required. Type-led design.  */
/* ------------------------------------------------------------------ */

/* Navbar — continuous with the hero, not a white bar cutting across it */
.theme-impact .navbar,
.theme-impact.agency-site .navbar {
    background: var(--brand-primary) !important;
    background-color: var(--brand-primary) !important;
    border-bottom-color: var(--brand-primary) !important;
    box-shadow: none;
    /* Override Bootstrap navbar-light colour variables */
    --bs-navbar-color: var(--brand-computed-hero-text, #ffffff);
    --bs-navbar-hover-color: var(--brand-computed-hero-text, #ffffff);
    --bs-navbar-active-color: var(--brand-computed-hero-text, #ffffff);
    --bs-navbar-brand-color: var(--brand-computed-hero-text, #ffffff);
    --bs-navbar-brand-hover-color: var(--brand-computed-hero-text, #ffffff);
    --bs-navbar-toggler-border-color: rgba(255,255,255,0.2);
}

.theme-impact .navbar .navbar-brand,
.theme-impact .navbar .brand-text {
    color: var(--brand-computed-hero-text, #ffffff) !important;
}

.theme-impact .navbar .nav-link {
    color: var(--brand-computed-hero-text, #ffffff);
    opacity: 0.75;
}

.theme-impact .navbar .nav-link:hover {
    opacity: 1;
    color: var(--brand-computed-hero-text, #ffffff);
}

/* Hamburger toggler — border driven by hero text variable */
.theme-impact .navbar-toggler {
    border-color: color-mix(in srgb, var(--brand-computed-hero-text, #ffffff) 30%, transparent);
}

/* Toggler icon — Bootstrap's SVG can't reference CSS variables directly.
   hero-contrast.js already sets --brand-computed-hero-text on :root at runtime.
   The inline style override in base_tenant.html reads that value and sets the
   correct icon colour — see the extra_js block in home_impact.html. */
.theme-impact .navbar-toggler-icon {
    filter: none;
}

/* Hero — full viewport, brand colour as background, flush with navbar */
.theme-impact .hero-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Oversized stacked headline — the type is the design */
.theme-impact .hero-title {
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -3px;
    color: var(--brand-computed-hero-text, #ffffff);
    max-width: 14ch;
}

.theme-impact .hero-text {
    font-size: 1.1rem;
    line-height: 1.75;
    opacity: 0.8;
    max-width: 520px;
    color: var(--brand-computed-hero-text, #ffffff);
    font-weight: 300;
}

/* CTA buttons — outline style, always readable on any brand colour */
.theme-impact .hero-actions .btn-primary {
    background-color: transparent;
    border: 2px solid var(--brand-computed-hero-text, #ffffff);
    color: var(--brand-computed-hero-text, #ffffff);
    border-radius: 0;
    padding: 0.75rem 2.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.theme-impact .hero-actions .btn-primary:hover {
    background-color: var(--brand-computed-hero-text, #ffffff);
    color: var(--brand-primary);
    opacity: 1;
}

.theme-impact .hero-actions .btn-outline-dark {
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--brand-computed-hero-text, #ffffff);
    border-radius: 0;
    padding: 0.75rem 2.5rem;
    font-weight: 700;
}

.theme-impact .hero-actions .btn-outline-dark:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

/* Hide the hero image column — Impact doesn't use an image in the hero */
.theme-impact .hero-image-wrapper {
    display: none;
}

/* Remove section dividers — the colour contrast does the work instead */
.theme-impact section:not(.hero-section) {
    border-top: none;
}

/* Highlight cards section — white background, cards are brand colour */
.theme-impact .sp-highlights-section,
.theme-impact section:has(.why-work-card) {
    background-color: var(--brand-bg);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Highlight cards — brand-primary fill, page background colour text */
.theme-impact .why-work-card {
    background-color: var(--brand-primary);
    border: none;
    border-radius: 0;
}

.theme-impact .why-work-card h3,
.theme-impact .why-work-card p {
    color: var(--brand-bg);
}

.theme-impact .why-work-card h3 {
    opacity: 1;
}

.theme-impact .why-work-card p {
    opacity: 0.85;
}

/* Featured job — full border, crisp and intentional */
.theme-impact .job-card,
.theme-impact .job-card-preview {
    border-radius: 0;
    border: 2px solid var(--brand-primary);
    background: var(--brand-bg);
}

.theme-impact .job-card:hover,
.theme-impact .job-card-preview:hover {
    border-color: var(--brand-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Impact card-brand */
.theme-impact .agency-site .card-brand,
.theme-impact.agency-site .card-brand {
    border-radius: 0;
    border-color: color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

/* ------------------------------------------------------------------ */
/* PULSE template                                                       */
/* Full-bleed brand-colour hero, no image needed. Single-page scroll. */
/* Bold, brandable. Inter. Electric lime defaults.                    */
/* ------------------------------------------------------------------ */

.theme-pulse {
    --brand-primary:   #84cc16;
    --brand-secondary: #1a2e05;
    --brand-bg:        #ffffff;
    --brand-font:      'Inter', sans-serif;
    --brand-hero-text: var(--brand-computed-hero-text, #ffffff);
    --brand-hero-bg:   var(--brand-primary);
}

/* Pulse navbar — inverted: sits on brand-primary, white text */
.theme-pulse .navbar {
    background-color: var(--brand-primary) !important;
    border-bottom: none;
}

.theme-pulse .navbar .navbar-brand,
.theme-pulse .navbar .nav-link {
    color: var(--brand-hero-text) !important;
}

.theme-pulse .navbar .nav-link {
    opacity: 0.85;
}

.theme-pulse .navbar .nav-link:hover {
    opacity: 1;
}

/* Pulse hero — full-bleed colour band, generous vertical rhythm */
.theme-pulse .sp-hero-section {
    background-color: var(--brand-primary);
    color: var(--brand-hero-text);
    padding: 7rem 0 6rem;
}

.theme-pulse .sp-hero-section .hero-title,
.theme-pulse .sp-hero-section .hero-text,
.theme-pulse .sp-hero-section p {
    color: var(--brand-hero-text);
}

.theme-pulse .hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.theme-pulse .hero-text {
    font-size: 1.15rem;
    line-height: 1.75;
    opacity: 0.9;
    max-width: 60ch;
    text-align: left;
}
    margin-right: auto;
}

/* Pulse hero CTA — secondary colour for primary button, outlined ghost for secondary */
.theme-pulse .sp-hero-section .btn-primary {
    background-color: var(--brand-hero-text);
    border-color: var(--brand-hero-text);
    color: var(--brand-primary);
    font-weight: 700;
}

.theme-pulse .sp-hero-section .btn-primary:hover {
    opacity: 0.9;
}

/* Pulse body sections — clean white, accent dividers */
.theme-pulse .sp-about-section,
.theme-pulse .sp-jobs-section,
.theme-pulse .sp-highlights-section,
.theme-pulse .sp-featured-section {
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
}

/* Pulse section titles — strong, left-anchored */
.theme-pulse .sp-section-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--brand-secondary);
}

/* Pulse job cards — sharp left-accent, matching Impact's card style */
.theme-pulse .sp-job-card {
    border-radius: 0;
    border-left: 4px solid var(--brand-primary);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    border-right: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    background: var(--brand-bg);
    transition: all 0.25s ease;
}

.theme-pulse .sp-job-card:hover {
    border-left-color: var(--brand-secondary);
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.1);
}

/* Pulse highlight cards — light primary tint */
.theme-pulse .why-work-card,
.theme-pulse .why-work-card.why-work-card {
    background-color: color-mix(in srgb, var(--brand-primary) 5%, var(--brand-bg));
    border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
    border-radius: 0;
}

.theme-pulse .why-work-card.why-work-card h3,
.theme-pulse .why-work-card.why-work-card p {
    color: var(--brand-secondary);
}

@media (max-width: 767.98px) {
    .theme-impact .hero-section {
        min-height: auto;
        padding: 4rem 0 3.5rem;
    }

    .theme-impact .hero-title {
        font-size: clamp(2.8rem, 12vw, 4rem);
        letter-spacing: -1.5px;
    }
}
/* ──────────────────────────────────────────────────────────────────── */
/* Demo bar — injected on /choose-template/preview/ pages only.         */
/* Sticky in document flow so content scrolls naturally below it.       */
/* The view also injects a <style> to push .sticky-top down 44px.       */
/* ──────────────────────────────────────────────────────────────────── */

.pp-demo-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 44px;
    background-color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    flex-shrink: 0;
}

.pp-demo-bar a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
}

.pp-demo-bar a:hover {
    opacity: 1;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .pp-demo-bar {
        height: 48px;
    }
    .pp-demo-cta {
        display: none;
    }
}